This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Suggestions » BEWARE: signature of cond() operator...
expandshrink

BEWARE: signature of cond() operator changed: ezp 3.2-1 -> 3.2-2

BEWARE: signature of cond() operator changed: ezp 3.2-1 -> 3.2-2

Friday 17 October 2003 1:29:36 pm - 2 replies

Why do you alter the signature of a core control operator like this without taking a little care about backward compatibility ?

I have to redesign a vast array of templates now, just for nothing.

Modified on Friday 17 October 2003 1:30:25 pm by Volker Lenz

Friday 17 October 2003 2:28:36 pm

The signature hasn't changed however a bug was fixed. The old code did not multiply the counter by two so you got strange results. The syntax is:

cond(MATCH,RESULT[,MATCH,RESULT]...[,DEFAULTRESULT])

Friday 17 October 2003 2:40:29 pm

Yep, you are right. I apologize. The signature is still the same. However, the old 'unfixed' code actually worked in the most used case of a TRIPLE of parameters (fork mode), while the 'fixed' code does no more. I found the new bug & fixed it. Shall post this as new bug report here.

Kind regards

Volker

Modified on Friday 17 October 2003 2:43:21 pm by Volker Lenz

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from