Browse Source

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

Marcin Sikon 14 years ago
parent
commit
423947adb1
1 changed files with 1 additions and 1 deletions
  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