Permalink
Browse files

Fixing ViewTask and FixtureTask. $interactive was set to false, and m…

…ethods were auto quitting. Fixes #437
  • Loading branch information...
1 parent 7d81d81 commit f8bc6de4ae0e30ff222a1100fe5f169772af17ff @markstory markstory committed Mar 9, 2010
Showing with 3 additions and 1 deletion.
  1. +1 −1 cake/console/libs/tasks/fixture.php
  2. +2 −0 cake/console/libs/tasks/view.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();
@@ -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();
}

0 comments on commit f8bc6de

Please sign in to comment.