Skip to content

Commit

Permalink
Fix twig for
Browse files Browse the repository at this point in the history
- for 0..-1 does 2 iterations anyway
- for 0..0 does 1 iterations anyway

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jun 15, 2018
1 parent 057c6fa commit 24a8518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/database/designer/database_tables.twig
@@ -1,5 +1,5 @@
{% for i in 0..table_names|length - 1 %}
{% set t_n = table_names[i] %}
{% for t_n in table_names %}
{% set i = loop.index0 %}
{% set t_n_url = table_names_url[i] %}
<input name="t_x[{{ t_n_url|url_encode }}]" type="hidden" id="t_x_{{ t_n_url|url_encode }}_" />
<input name="t_y[{{ t_n_url|url_encode }}]" type="hidden" id="t_y_{{ t_n_url|url_encode }}_" />
Expand Down

0 comments on commit 24a8518

Please sign in to comment.