From 325be6447f30d23620fb7506e4f711c0c6ca75fd Mon Sep 17 00:00:00 2001 From: Till Breuer Date: Tue, 25 Mar 2014 15:08:57 +0100 Subject: [PATCH] Only initially set columns when work packages are loaded --- .../javascripts/angular/controllers/work-packages-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/angular/controllers/work-packages-controller.js b/app/assets/javascripts/angular/controllers/work-packages-controller.js index a5cfd9cc98..1aa4d2b4eb 100644 --- a/app/assets/javascripts/angular/controllers/work-packages-controller.js +++ b/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);