瀏覽代碼

Fix batch action name generation

Thomas Rabaix 14 年之前
父節點
當前提交
ec187159f8
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Controller/CRUDController.php

+ 2 - 0
Controller/CRUDController.php

@@ -272,6 +272,8 @@ class CRUDController extends Controller
         }
 
         // execute the action, batchActionXxxxx
+        $action = \Sonata\AdminBundle\Admin\BaseFieldDescription::camelize($action);
+
         $final_action = sprintf('batchAction%s', ucfirst($action));
         if (!method_exists($this, $final_action)) {
             throw new \RuntimeException(sprintf('A `%s::%s` method must be created', get_class($this), $final_action));