Minor fix to failing updates.
This commit is contained in:
parent
3a2a8a06d9
commit
46b3e2600f
1 changed files with 1 additions and 2 deletions
|
|
@ -33,7 +33,6 @@
|
|||
{% set opts = options or [] %}
|
||||
{% set selected = opts | selectattr('value', 'equalto', value) | list %}
|
||||
{% if not selected %}
|
||||
{# try again with string coercion to handle int vs str mismatch #}
|
||||
{% set selected = opts | selectattr('value', 'equalto', value|string) | list %}
|
||||
{% endif %}
|
||||
{% set sel = selected[0] if selected else none %}
|
||||
|
|
@ -63,7 +62,7 @@
|
|||
<button class="btn btn-outline-dark d-block w-100 text-start dropdown-toggle disabled inventory-dropdown" disabled>-- No
|
||||
selection available --</button>
|
||||
{% endif %}
|
||||
<input type="hidden" name="{{ field_name }}" id="{{ field_name }}" value="{{ value }}">
|
||||
<input type="hidden" name="{{ field_name }}" id="{{ field_name }}" value="{{ value if value else '' }}">
|
||||
|
||||
{% elif field_type == 'textarea' %}
|
||||
<textarea name="{{ field_name }}" id="{{ field_name }}" {% if attrs %}{% for k,v in attrs.items() %} {{k}}{% if v is not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue