Skip to content

Commit

Permalink
Set the key variable in the SessionHelper.
Browse files Browse the repository at this point in the history
This fixes cross template compatibility between the Flash and Session
helpers.

Refs #7365
  • Loading branch information
markstory committed Sep 10, 2015
1 parent 2d2c5be commit 9eafde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/View/Helper/SessionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public function flash($key = 'flash', $attrs = array()) {
}
$tmpVars = $flash['params'];
$tmpVars['message'] = $message;
$tmpVars['key'] = $key;
$out = $this->_View->element($flash['element'], $tmpVars, $options);
}
}
Expand Down

0 comments on commit 9eafde1

Please sign in to comment.