CRM-17192: Fixes problem with failure to prepopulate crmEntityRefs with multiple...
authorFrank J. Gómez <frank@ginkgostreet.com>
Tue, 10 Nov 2015 21:25:20 +0000 (16:25 -0500)
committerFrank J. Gómez <frank@ginkgostreet.com>
Tue, 10 Nov 2015 21:25:20 +0000 (16:25 -0500)
ang/crmUi.js

index 448e8809195eb9a387d0bc94debbf13e9e8a0b5e..5efa2a48019b71be756951693e9d2a2e7b8d2ca2 100644 (file)
               $timeout(function () {
                 // ex: msg_template_id adds new item then selects it; use $timeout to ensure that
                 // new item is added before selection is made
-                element.select2('val', ngModel.$viewValue);
+                element.select2('val', ngModel.$modelValue);
               });
             };
           }
             $timeout(function () {
               // ex: msg_template_id adds new item then selects it; use $timeout to ensure that
               // new item is added before selection is made
-              element.select2('val', ngModel.$viewValue);
+              element.select2('val', ngModel.$modelValue);
             });
           };
           function refreshModel() {