Merge pull request #2820 from floriank/fix/19607-fix-firefox-script-stop-issue

[19607] Use lodash cloneDeep instead of using angular.copy
pull/2821/head
Jan Sandbrink 10 years ago
commit 5ba6692ffc
  1. 2
      frontend/app/work_packages/filters/index.js

@ -52,7 +52,7 @@ angular.module('openproject.workPackages.filters')
.filter('remainingFilterNames', ['orderByFilter', 'FiltersHelper', function(orderByFilter, FiltersHelper) {
function subtractActiveFilters(filters, filtersToSubtract) {
var filterDiff = angular.copy(filters);
var filterDiff = _.cloneDeep(filters);
angular.forEach(filtersToSubtract, function(filter) {
if(!filter.deactivated) delete filterDiff[filter.name];

Loading…
Cancel
Save