Przeglądaj źródła

Fixed "bad" test (id is not always a number so this did not work in every case).

Michel Weimerskirch 14 lat temu
rodzic
commit
90ccebf41b
1 zmienionych plików z 1 dodań i 1 usunięć
  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 %}
 
-    {% if admin.id(object) > 0 %}
+    {% if admin.id(object) %}
         {% set url = 'edit' %}
     {% else %}
         {% set url = 'create' %}