Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
if you have similar entries in the allowed values list autocomplete_deluxe saves the last value that matches.
example: the allowed values include
ESSDACK|ESSDACK
ESSDACKHEALTH|ESSDACK Health
When creating content I type ess then click ESSDACK the field shows ESSDACK is selected but when it is saved the value is saved as ESSDACK Health.
Comments
Comment #1
RoelandG CreditAttribution: RoelandG commentedHad the same issue, which occures when key and value are not equal.
I solved this by replacing this line autocomplete_deluxe.js at line 438
replace by
With this replacement the select option will be selected based on inner value instead of by option value.
Comment #2
RoelandG CreditAttribution: RoelandG commentedComment #3
chrisjlock CreditAttribution: chrisjlock commentedThanks for the patch, I'll give it a try.
Comment #4
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedClosing this as outdated as "allowed values" - and the 7.x-1.x release - are no longer supported.