Fixed logic bug in toggled multiselect directive #8744.

pull/1454/head
Richard 11 years ago
parent 4d1762ec55
commit 656196ed1e
  1. 2
      app/assets/javascripts/angular/directives/components/toggled-multiselect-directive.js

@ -47,7 +47,7 @@ angular.module('openproject.uiComponents')
};
scope.isSelected = function(value) {
return Array.isArray(scope.values) && (scope.values.indexOf(value) !== -1 || scope.values.indexOf(value.toString()) !== -1);
return (Array.isArray(scope.values) && (scope.values.indexOf(value) !== -1) || scope.values.indexOf(value.toString()) !== -1);
};
scope.isMultiselect = (Array.isArray(scope.values) && scope.values.length > 1);

Loading…
Cancel
Save