Browse Source

Fix batch action name generation

Thomas Rabaix 14 years ago
parent
commit
ec187159f8
1 changed files with 2 additions and 0 deletions
  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));