Merge pull request #302 from majna/2.0-viewtask-methods

Fix View task generating only 'admin' methods views in non-interactive mode.
This commit is contained in:
Mark Story 2011-11-06 12:59:38 -08:00
commit db41a7dd16

View file

@ -143,7 +143,7 @@ class ViewTask extends BakeTask {
}
$adminRoute = $this->Project->getPrefix();
foreach ($methods as $i => $method) {
if ($adminRoute && isset($this->params['admin'])) {
if ($adminRoute && !empty($this->params['admin'])) {
if ($scaffoldActions) {
$methods[$i] = $adminRoute . $method;
continue;