Don't request columns sums when columns are removed

pull/1038/head
Till Breuer 11 years ago
parent b75777ae53
commit d39af8d015
  1. 4
      app/assets/javascripts/angular/directives/work_packages/work-package-total-sums-directive.js

@ -15,9 +15,9 @@ angular.module('openproject.workPackages.directives')
});
}
scope.$watch('columns.length', function() {
scope.$watch('columns.length', function(length, formerLength) {
// map columns to sums if the column data is a number
fetchSums();
if(length >= formerLength) fetchSums();
});
}
};

Loading…
Cancel
Save