Преглед изворни кода

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

Michel Weimerskirch пре 14 година
родитељ
комит
90ccebf41b
1 измењених фајлова са 1 додато и 1 уклоњено
  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' %}