We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a4b09f + e7234a2 commit dc7df87Copy full SHA for dc7df87
1 file changed
resources/templates/table/relation/relational_dropdown.twig
@@ -3,15 +3,15 @@
3
{% set seen_key = false %}
4
{% for value in values %}
5
<option value="{{ value }}"
6
- {%- if (foreign is not same as(false) and value == foreign) or
+ {%- if (foreign is not same as('') and value == foreign) or
7
(not foreign and db is defined and db is same as (value)) %}
8
selected
9
{%- set seen_key = true -%}
10
{%- endif %}>
11
{{ value }}
12
</option>
13
{% endfor %}
14
- {% if foreign is not same as(false) and foreign != "" and not seen_key %}
+ {% if foreign is not same as('') and not seen_key %}
15
<option value="{{ foreign }}" selected>
16
{{ foreign }}
17
0 commit comments