Explorar el Código

Fix batch action name generation

Thomas Rabaix hace 14 años
padre
commit
ec187159f8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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));