diff --git a/app/assets/javascripts/angular/controllers/dialogs/share.js b/app/assets/javascripts/angular/controllers/dialogs/share.js index c8e28fa43f..d76f337a0d 100644 --- a/app/assets/javascripts/angular/controllers/dialogs/share.js +++ b/app/assets/javascripts/angular/controllers/dialogs/share.js @@ -52,7 +52,7 @@ angular.module('openproject.workPackages.controllers') shareModal.deactivate(); $scope.$emit('flashMessage', data.status); - QueryService.fetchAvailableGroupedQueries($scope.projectIdentifier); + QueryService.fetchAvailableGroupedQueries($scope.query.project_id); }); }; }]);