From a87b6cdf9193aec933972cf485ba167cf382bc9c Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 29 Jul 2009 12:48:31 +0200 Subject: [PATCH] allow rebaking all views based on available methods & templates --- cake/console/libs/tasks/view.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/console/libs/tasks/view.php b/cake/console/libs/tasks/view.php index 14f1f3dc1ca..4b0104a50e4 100644 --- a/cake/console/libs/tasks/view.php +++ b/cake/console/libs/tasks/view.php @@ -179,9 +179,9 @@ function _methodsToBake() { * @return void **/ function all() { - $actions = $this->scaffoldActions; $this->Controller->interactive = false; $tables = $this->Controller->listAll($this->connection, false); + $this->interactive = false; foreach ($tables as $table) { $model = $this->_modelName($table); @@ -189,6 +189,7 @@ function all() { $this->controllerPath = Inflector::underscore($this->controllerName); if (App::import('Model', $model)) { $vars = $this->__loadController(); + $actions = $this->_methodsToBake(); $this->bakeActions($actions, $vars); } }