소스 검색

Fix correct id in aclAction

Baptiste Meyer 11 년 전
부모
커밋
b3783fef7e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);