Bug #7174
open
Nested [cb:else] and [cb:elseif] do not work properly
Added by krileon over 6 years ago.
Updated 3 months ago.
Description
If you've a nested [cb:if] and it has an [cb:else] in addition to its parent [cb:if] then the parent [cb:else] will never be used since the nested [cb:else] is matched first by the regexp. A fix maybe to handle nested [cb:if] conditions before handling [cb:else] and [cb:elseif]. Example to test this as follows.
[cb:if name="FAKE_1"]
This won't display.
[cb:if name="FAKE_2"]
This won't display.
[cb:else]
This will display, but shouldn't.
[cb:else]
[/cb:if]
[cb:else]
This won't display, but should.
[/cb:else]
[/cb:if]
https://www.joomlapolis.com/forum/153-professional-member-support/239205-cb-if-with-progress-field#304917
- Target version changed from CB 2.1.5 to CB 2.3
- Target version changed from CB 2.3 to CB 2.4
- Target version changed from CB 2.4 to CB 2.4.1
- Target version changed from CB 2.4.1 to CB 2.4.2
- Target version changed from CB 2.4.2 to CB 2.4.3
- Target version changed from CB 2.4.3 to CB 2.4.4
- Target version changed from CB 2.4.4 to CB 2.4.5
- Target version changed from CB 2.4.5 to CB 2.4.6
- Target version changed from CB 2.4.6 to CB 2.4.7
- Target version changed from CB 2.4.7 to CB 2.5.0
- Target version changed from CB 2.5.0 to CB 2.6
- Target version changed from CB 2.6 to CB 2.6.1
- Target version changed from CB 2.6.1 to CB 2.7
- Target version changed from CB 2.7 to CB 2.7.2
- Target version changed from CB 2.7.2 to CB 2.7.3
- Target version changed from CB 2.7.3 to CB 2.7.4
- Target version changed from CB 2.7.4 to CB 2.8
- Target version changed from CB 2.8 to CB 2.8.1
- Target version changed from CB 2.8.1 to CB 2.8.2
- Target version changed from CB 2.8.2 to CB 2.9.0
- Target version changed from CB 2.9.0 to CB 2.9.2
- Target version changed from CB 2.9.2 to CB 2.9.3
- Target version changed from CB 2.9.3 to CB 2.9.4
Also available in: Atom
PDF