From 54a426693c5aef1791144cb8776cd3682ad50b5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Tue, 10 Nov 2015 16:25:20 -0500 Subject: [PATCH] CRM-17192: Fixes problem with failure to prepopulate crmEntityRefs with multiple values. --- ang/crmUi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ang/crmUi.js b/ang/crmUi.js index 448e880919..5efa2a4801 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -630,7 +630,7 @@ $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); }); }; } @@ -673,7 +673,7 @@ $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() { -- 2.25.1