Changed  to ->getCurrentAction() in CRUDController