Skip to content

Commit

Permalink
Better clearing of session messages after display (OpenMage#3326)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabrizio Balliano <fabrizio.balliano@gmail.com>
  • Loading branch information
kyrena and fballiano authored Jul 12, 2023
1 parent 6c2e6a2 commit ef99684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Core/Block/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public function getGroupedHtml()
if ($html) {
$html .= '</' . $this->_messagesFirstLevelTagName . '>';
}
$this->_messages = $this->getMessageCollection()->clear();
return $html;
}

Expand Down

0 comments on commit ef99684

Please sign in to comment.