diff --git a/cake/libs/controller/scaffold.php b/cake/libs/controller/scaffold.php index 54db20119..234ea3053 100644 --- a/cake/libs/controller/scaffold.php +++ b/cake/libs/controller/scaffold.php @@ -450,7 +450,7 @@ class Scaffold extends Object { $this->scaffoldActions = array( 'index', 'list', 'view', 'add', 'create', 'edit', 'update', 'delete' ); - } elseif (!empty($prefixes) && in_array($this->scaffoldActions, $prefixes)) { + } elseif (!empty($prefixes) && in_array($scaffoldPrefix, $prefixes)) { $this->scaffoldActions = array( $scaffoldPrefix . '_index', $scaffoldPrefix . '_list',