From f8bc6de4ae0e30ff222a1100fe5f169772af17ff Mon Sep 17 00:00:00 2001 From: Mark Story Date: Mon, 8 Mar 2010 21:18:53 -0500 Subject: [PATCH] Fixing ViewTask and FixtureTask. $interactive was set to false, and methods were auto quitting. Fixes #437 --- cake/console/libs/tasks/fixture.php | 2 +- cake/console/libs/tasks/view.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/console/libs/tasks/fixture.php b/cake/console/libs/tasks/fixture.php index 1d76f1a4885..95c2fdb4a0b 100644 --- a/cake/console/libs/tasks/fixture.php +++ b/cake/console/libs/tasks/fixture.php @@ -106,7 +106,7 @@ function all() { * @access private */ function __interactive() { - $this->interactive = true; + $this->DbConfig->interactive = $this->Model->interactive = $this->interactive = true; $this->hr(); $this->out(sprintf("Bake Fixture\nPath: %s", $this->path)); $this->hr(); diff --git a/cake/console/libs/tasks/view.php b/cake/console/libs/tasks/view.php index 6af3e7c5b06..bdb5a72bcd6 100644 --- a/cake/console/libs/tasks/view.php +++ b/cake/console/libs/tasks/view.php @@ -211,6 +211,8 @@ function __interactive() { $this->out(sprintf("Bake View\nPath: %s", $this->path)); $this->hr(); + $this->DbConfig->interactive = $this->Controller->interactive = $this->interactive = true; + if (empty($this->connection)) { $this->connection = $this->DbConfig->getConfig(); }