Loading...
 
Skip to main content

Tracker, Dropdown field; 2 options can't have the same value (one is not displayed)

Status
Open
Subject
Tracker, Dropdown field; 2 options can't have the same value (one is not displayed)
Version
25.x
master
Category
  • Bug
Feature
Trackers
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Related-to
Description

In a fresh Tiki25 I have a dropdown field type with different values.
The doc say:
If an option contains an equal sign, the part before the equal sign will be used as the value, and the second part as the label
I tried the following where several can have the same value.

In my mind if the user select "yes" or "no" the value will be 1 and if the user assign "not today" the value will be 0.

But it is not working like this.
It seems the value must be unique while I can have several of the same label.

So if I set the field options to : 1=yes,1=no,not today=0
It won't work (the first 1 value won't be displayed)

So if I set the field options to : 1=yes,10=yes,not today=0
It kind of work and display twice the label yes

This is awkward from the user point of view...

Image

Image

Image

Importance
3
Easy to solve?
7
Priority
21
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8277
Created
Sunday 25 December, 2022 12:21:25 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Sunday 25 December, 2022 12:21:25 UTC


Show PHP error messages