diff --git a/src/View/Helper/CrudViewHelper.php b/src/View/Helper/CrudViewHelper.php index bc4517d2..8161fd66 100644 --- a/src/View/Helper/CrudViewHelper.php +++ b/src/View/Helper/CrudViewHelper.php @@ -382,7 +382,7 @@ public function getViewVar($key = null) */ public function getCssClasses() { - $action = $this->request->action; + $action = (string)$this->request->param('action'); $pluralVar = $this->getViewVar('pluralVar'); $viewClasses = (array)$this->getViewVar('viewClasses'); $args = func_get_args();