Ver Fonte

fix json result updateAction, script in file edit_many_association_script.html.twig:199 use data.objectId but result has object_id

Marcin Sikon há 14 anos atrás
pai
commit
423947adb1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Controller/CRUDController.php

+ 1 - 1
Controller/CRUDController.php

@@ -221,7 +221,7 @@ class CRUDController extends Controller
             }
 
             if ($this->get('request')->isXmlHttpRequest()) {
-                return $this->renderJson(array('result' => 'ok', 'object_id' => $object->getId()));
+                return $this->renderJson(array('result' => 'ok', 'objectId' => $object->getId()));
             }
 
             // redirect to edit mode