Project

General

Profile

Actions

Bug #7174

open

Nested [cb:else] and [cb:elseif] do not work properly

Bug #7174: Nested [cb:else] and [cb:elseif] do not work properly

Added by krileon over 7 years ago. Updated about 2 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Start date:
30 May 2018
Due date:
% Done:

0%

Estimated time:

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

Updated by krileon over 7 years ago Actions #1

  • Target version changed from CB 2.1.5 to CB 2.3

Updated by beat about 7 years ago Actions #2

  • Target version changed from CB 2.3 to CB 2.4

Updated by beat almost 7 years ago Actions #3

  • Target version changed from CB 2.4 to CB 2.4.1

Updated by beat almost 7 years ago Actions #4

  • Target version changed from CB 2.4.1 to CB 2.4.2

Updated by beat over 6 years ago Actions #5

  • Target version changed from CB 2.4.2 to CB 2.4.3

Updated by beat almost 6 years ago Actions #6

  • Target version changed from CB 2.4.3 to CB 2.4.4

Updated by beat almost 6 years ago Actions #7

  • Target version changed from CB 2.4.4 to CB 2.4.5

Updated by beat over 5 years ago Actions #8

  • Target version changed from CB 2.4.5 to CB 2.4.6

Updated by beat over 5 years ago Actions #9

  • Target version changed from CB 2.4.6 to CB 2.4.7

Updated by beat about 5 years ago Actions #10

  • Target version changed from CB 2.4.7 to CB 2.5.0

Updated by beat almost 5 years ago Actions #11

  • Target version changed from CB 2.5.0 to CB 2.6

Updated by beat over 4 years ago Actions #12

  • Target version changed from CB 2.6 to CB 2.6.1

Updated by beat over 4 years ago Actions #13

  • Target version changed from CB 2.6.1 to CB 2.7

Updated by beat almost 4 years ago Actions #14

  • Target version changed from CB 2.7 to CB 2.7.2

Updated by beat almost 4 years ago Actions #15

  • Target version changed from CB 2.7.2 to CB 2.7.3

Updated by beat over 3 years ago Actions #16

  • Target version changed from CB 2.7.3 to CB 2.7.4

Updated by krileon about 3 years ago Actions #17

  • Target version changed from CB 2.7.4 to CB 2.8

Updated by beat almost 3 years ago Actions #18

  • Target version changed from CB 2.8 to CB 2.8.1

Updated by beat over 2 years ago Actions #19

  • Target version changed from CB 2.8.1 to CB 2.8.2

Updated by beat about 2 years ago Actions #20

  • Target version changed from CB 2.8.2 to CB 2.9.0

Updated by beat about 2 years ago Actions #21

  • Target version changed from CB 2.9.0 to CB 2.9.2

Updated by beat over 1 year ago Actions #22

  • Target version changed from CB 2.9.2 to CB 2.9.3

Updated by beat over 1 year ago Actions #23

  • Target version changed from CB 2.9.3 to CB 2.10.0

Updated by beat 11 months ago Actions #24

  • Target version changed from CB 2.10.0 to CB 2.11.0

Updated by beat about 2 months ago Actions #25

  • Target version changed from CB 2.11.0 to CB 2.11.1
Actions

Also available in: PDF Atom