Skip to content

Commit

Permalink
Merge #16615 - Fix #16612 - Empty relation view table dropdown
Browse files Browse the repository at this point in the history
Pull-request: #16615
Fixes: #16612

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 9, 2021
2 parents 620280e + dc5843d commit 3b49d32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/table/relation/foreign_key_row.twig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
{% set tables = [] %}
{% if foreign_db %}
{% set tables = get_tables(foreign_db, tbl_storage_engine) %}
{% else %}
{% set tables = get_tables(db, tbl_storage_engine) %}
{% endif %}
<td>
<span class="formelement clearfloat">
Expand Down
2 changes: 1 addition & 1 deletion templates/table/relation/relational_dropdown.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ value }}
</option>
{% endfor %}
{% if foreign is not same as(false) and not seen_key %}
{% if foreign is not same as(false) and foreign != "" and not seen_key %}
<option value="{{ foreign }}" selected="selected">
{{ foreign }}
</option>
Expand Down

0 comments on commit 3b49d32

Please sign in to comment.