Selaa lähdekoodia

Merge pull request #150 from mweimerskirch/patch-1

Fixed "bad" test (id is not always a number so this did not work in every
Thomas 14 vuotta sitten
vanhempi
commit
567355c1f9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Resources/views/CRUD/base_edit.html.twig

+ 1 - 1
Resources/views/CRUD/base_edit.html.twig

@@ -31,7 +31,7 @@ file that was distributed with this source code.
 
 
 {% block form %}
 {% block form %}
 
 
-    {% if admin.id(object) > 0 %}
+    {% if admin.id(object) %}
         {% set url = 'edit' %}
         {% set url = 'edit' %}
     {% else %}
     {% else %}
         {% set url = 'create' %}
         {% set url = 'create' %}