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

RoelandG’s picture

Component: Code » Single values - allow new values

Had 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

this.selectbox.children('option[value="' + value + '"]').attr("selected", true);

replace by

this.selectbox.children('option').filter('[innerHTML="' + input.value + '"]').attr("selected", true);

With this replacement the select option will be selected based on inner value instead of by option value.

RoelandG’s picture

Status: Active » Needs review
chrisjlock’s picture

Thanks for the patch, I'll give it a try.

LNakamura’s picture

Component: Single values - allow new values » Single values
Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing this as outdated as "allowed values" - and the 7.x-1.x release - are no longer supported.