Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20390

Data type mismatch in angular select2 bindings

    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
    • 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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colemanw Coleman Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: