On Tiki 18.x I have a tracker with a dropdown field to display different values.
By default the value should be 0.
The dropdown doesn’t display an option if the value of the option is 0.
I tried:
0,1,2,3,4,5
0=0,1=1,2=2,3=3,4=4,5=5
0=0,0=0,1=1,2=2,3=3,4=4,5=5
=0,=0,1=1,2=2,3=3,4=4,5=5
0=None,0=None,1=1,2=2,3=3,4=4,5=5
None are working (none=None,none=None,1=1,2=2,3=3,4=4,5=5 is working fine)
I created an instance.
The field time is a dropdown with the following options: 0=0 hours,1=1 hour,2=2 hours,3=3 hours,4=4 hours
Go at: http://bsfez-11581-6744.show.tikiwiki.org/tiki-view_tracker.php?trackerId=1
Create an item, the first value (equal 0) is not displayed.
I have the feeling this is a nasty regression.(in another case changing back the value for something else than 0 didn’t make the "lost" options reaper.
Smarty thought that 0 is equal to {tr}other{/tr}
We had to make smarty template explicitly treat $value !== 0
Fixed in Master/Trunk/23.x:
https://gitlab.com/tikiwiki/tiki/-/commit/d703343ffb908e7c19d59fe8474903fdf2b45103
To be backported soon
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |