Skip to content

Commit

Permalink
[BUGFIX] Prevent settings spill-over in cached context (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle authored and mbrodala committed Nov 16, 2018
1 parent 944faf5 commit 60545b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/ViewHelper/AbstractTagBasedViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public function initializeArguments()
public function initialize()
{
parent::initialize();
$this->tag->reset();
$this->tag->setTagName($this->tagName);

if ($this->hasArgument('additionalAttributes') && is_array($this->arguments['additionalAttributes'])) {
$this->tag->addAttributes($this->arguments['additionalAttributes']);
}
Expand Down

0 comments on commit 60545b6

Please sign in to comment.