Only initially set columns when work packages are loaded

pull/1065/head
Till Breuer 11 years ago
parent c6a86225b9
commit 325be6447f
  1. 2
      app/assets/javascripts/angular/controllers/work-packages-controller.js

@ -54,7 +54,7 @@ angular.module('openproject.workPackages.controllers')
// Also perhaps the filters... and everything:/
var meta = json.meta;
$scope.columns = meta.columns;
if (!$scope.columns) $scope.columns = meta.columns;
if (!$scope.query) initQuery(meta.query);
$scope.rows = WorkPackagesTableHelper.getRows(json.work_packages, $scope.query.group_by);

Loading…
Cancel
Save