Skip to content

Commit 60545b6

Browse files
jonaseberlembrodala
authored andcommitted
[BUGFIX] Prevent settings spill-over in cached context (#419)
1 parent 944faf5 commit 60545b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Core/ViewHelper/AbstractTagBasedViewHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ public function initializeArguments()
8888
public function initialize()
8989
{
9090
parent::initialize();
91+
$this->tag->reset();
92+
$this->tag->setTagName($this->tagName);
93+
9194
if ($this->hasArgument('additionalAttributes') && is_array($this->arguments['additionalAttributes'])) {
9295
$this->tag->addAttributes($this->arguments['additionalAttributes']);
9396
}

0 commit comments

Comments
 (0)