Bug #23823
closedlistNum = 0 not working anymore due to stdWrap changes
0%
Description
Since the stdWrap refactoring import.listNum = 0 does not work anymore and all other functions where = 0 is not meant to be false will fail, too. This is due to a wrong check in function stdWrap, line 4461.
If changed from
if ($conf[$functionName] || $conf[$functionProperties]) {
to
if (isset($conf[$functionName]) || $conf[$functionProperties]) {
it works again. I did not test possible other effects of that change at the moment.
(issue imported from #M16107)
Files
Updated by Jo Hasenau about 14 years ago
looks like a nobrainer to me (who was the nobrainer overlooking it) ;-)
Updated by Jo Hasenau about 14 years ago
but we have to make sure that "boolean" stdWrap functions will behave correctly when they get a 0 value
Updated by Jo Hasenau about 14 years ago
Attached patch introduces function types for the $stdWrapOrder array to make sure that boolean functions will not be executed when their value is 0, while the rest of the functions will work as before.
Additionally it gives us more options to do a kind of "syntax check"
Updated by Ingo Renner about 14 years ago
Fixed target version, always set target to final release, use "Fixed in Version" for specific preview releases...