Explorar o código

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

Michel Weimerskirch %!s(int64=14) %!d(string=hai) anos
pai
achega
90ccebf41b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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' %}