Skip to content

[BUGFIX] Ensure consistent handling of else-if ViewHelpers#1025

Merged
s2b merged 1 commit intomainfrom
bugfix/elseIfUncached
Feb 11, 2025
Merged

[BUGFIX] Ensure consistent handling of else-if ViewHelpers#1025
s2b merged 1 commit intomainfrom
bugfix/elseIfUncached

Conversation

@s2b
Copy link
Copy Markdown
Contributor

@s2b s2b commented Feb 2, 2025

A f:if ViewHelper that contains else-if ViewHelpers and also sets the else attribute behaved differently for cached and uncached templates. With this change, uncached templates now behave just like cached templates.

This can be validated by temporarily commenting out the second test execution code in IfThenElseViewHelperTest::render(). This testing setup issue should also be fixed in the future, but this is out of scope for the specific issue.

@s2b s2b force-pushed the bugfix/elseIfUncached branch 2 times, most recently from c1e2568 to c96dfaf Compare February 2, 2025 16:41
A f:if ViewHelper that contains else-if ViewHelpers and also sets the else
attribute behaved differently for cached and uncached templates. With
this change, uncached templates now behave just like cached templates.

This can be validated by temporarily commenting out the second test
execution code in IfThenElseViewHelperTest::render(). This testing setup
issue should also be fixed in the future, but this is out of scope for the
specific issue.
@s2b s2b force-pushed the bugfix/elseIfUncached branch from c96dfaf to 7e78e17 Compare February 2, 2025 16:43
@s2b s2b merged commit 188bb0d into main Feb 11, 2025
@s2b s2b deleted the bugfix/elseIfUncached branch February 11, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants