Explorar o código

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

Marcin Sikon %!s(int64=14) %!d(string=hai) anos
pai
achega
423947adb1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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