Explorar o código

Merge pull request #1513 from coopTilleuls/fix_id_aclaction

Fix id in aclAction of CRUDController
Thomas %!s(int64=11) %!d(string=hai) anos
pai
achega
f695ac6286
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Controller/CRUDController.php

+ 2 - 0
Controller/CRUDController.php

@@ -755,6 +755,8 @@ class CRUDController extends Controller
         if (!$this->admin->isAclEnabled()) {
             throw new NotFoundHttpException('ACL are not enabled for this admin');
         }
+        
+        $id = $this->get('request')->get($this->admin->getIdParameter());
 
         $object = $this->admin->getObject($id);