tempvar: bug fix for duplicate template var

and a fix for when selecting the same value twice in
a template variable if it is not multi select. It threw an
exception on the second selection
This commit is contained in:
Daniel Lee
2017-08-09 14:28:23 +02:00
parent 668cb3c1ef
commit 59513ff963
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ function (angular, _, coreModule) {
vm.selectValue = function(option, event, commitChange, excludeOthers) {
if (!option) { return; }
option.selected = !option.selected;
option.selected = vm.variable.multi ? !option.selected: true;
commitChange = commitChange || false;
excludeOthers = excludeOthers || false;