Bug #6832
closedUserlist searching of select values with spaces breaks the value
Description
When searching a select type field and the value contains a space it is split at the space. Example as follows.
Field: Drop Down (Single Select)
Advanced Search: is one of
Values: Value 1 and Value 2
Result:AND ((ue.`cb_dropdownsingle` = 'Value') OR (ue.`cb_dropdownsingle` = '2'))
Expected:AND ((ue.`cb_dropdownsingle` = 'Value 1') OR (ue.`cb_dropdownsingle` = 'Value 2'))
Updated by krileon about 7 years ago
This is due to the jQuery for userlists not switching the name of the input to include [] at the end so it can be treated as an array of values.
Updated by krileon about 7 years ago
- % Done changed from 0 to 50
Partially fixed. The name properly changes now and the SQL is now working fine, but the redisplay of the input is not showing the appropriately selected values likely due to fields search HTML not handling the array of values.
Updated by krileon about 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 50 to 100
Fixed in MR !1291