|
|
|
@ -43,7 +43,8 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
'QueryService', |
|
|
|
|
'WorkPackageService', |
|
|
|
|
'WorkPackagesTableService', |
|
|
|
|
function($scope, $timeout, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService) { |
|
|
|
|
'$rootScope', |
|
|
|
|
function($scope, $timeout, $filter, columnsModal, QueryService, WorkPackageService, WorkPackagesTableService, $rootScope) { |
|
|
|
|
|
|
|
|
|
this.name = 'Columns'; |
|
|
|
|
this.closeMe = columnsModal.deactivate; |
|
|
|
@ -96,7 +97,7 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
if(groupBy.length === 0) groupBy = undefined; // don't pass an empty string as groupBy
|
|
|
|
|
|
|
|
|
|
if(addedColumns.length) { |
|
|
|
|
$scope.refreshWorkPackages = WorkPackageService.augmentWorkPackagesWithColumnsData(currentWorkPackages, addedColumns, groupBy); |
|
|
|
|
$rootScope.refreshWorkPackages = WorkPackageService.augmentWorkPackagesWithColumnsData(currentWorkPackages, addedColumns, groupBy); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
columnsModal.deactivate(); |
|
|
|
|