Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7.19
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Core Team Contract
-
Verified?:No
Description
There is a bug in the crmUiSelect and crmEntityref Angular directives. When the input is a multiselect, the data pushed into the model by user interaction with the select2 widget is a comma-separated string, whereas pushing a string back into the model programatically will fail because the widget is expecting an array.
I would be happiest with changing multiselects to always i/o an array but this would probably break existing applications, so I've done a more conservative patch.