I'm not sure if this is a bug or not, but I'm using cck6.x-2.4 on drupal 6.13 and have a text field select list that is not required with values using key|labels like the following:
8|Pink
8|Purple
10|Yellow
10|Green
12|Red
14|Blue
20|Black
20|white
When the actual content is being created however, the only values listed in the dropdown box are the following:
8|Purple
10|Green
12|Red
14|Blue
20|White
It appears that when there are multiple choices with the same value, it only displays the last one. I need all of the choices to show up, and I can't group them together because the values are later calculated into another field. Is there any way around this behavior?
Thanks!
Comments
Comment #1
yched commentedYes, that's by design.
What gets stored in the db are the value at the left at the |. The values at the right are just aliases displayed edit forms and displayed nodes.
You cannot assign multiple aliases to the same value, because we cannot determine which of the aliases to use when a node has value 8 for instance.
Also note that core's Form elements (select, checkboxes, radios) do not support multiple choices having the same 'value'.
I'm not sure what you're trying to achieve, but that approach is a dead-end.