Skip to content
Permalink
Browse files

When specifying Session as a component and using Session flash messag…

…es, you end up with 'Paginator, Session, Session' which doesn't make sense. Added an array_unique to remove any duplicated components.
  • Loading branch information...
davidyell committed Jul 18, 2014
1 parent b6eb562 commit 28ec1c40a55a1b4b5f613040357286f24e698d8e
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -188,6 +188,7 @@ protected function _interactive() {
if (strtolower($wannaUseSession) === 'y') {
array_push($components, 'Session');
}
array_unique($components);
}
} else {
list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();

0 comments on commit 28ec1c4

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.