diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
commit | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch) | |
tree | 1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /app/helpers/work_items_helper.rb | |
parent | 1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'app/helpers/work_items_helper.rb')
-rw-r--r-- | app/helpers/work_items_helper.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/helpers/work_items_helper.rb b/app/helpers/work_items_helper.rb index 1969c98de8b..d2e3d41377a 100644 --- a/app/helpers/work_items_helper.rb +++ b/app/helpers/work_items_helper.rb @@ -1,10 +1,11 @@ # frozen_string_literal: true module WorkItemsHelper - def work_items_index_data(project) + def work_items_index_data(resource_parent) { - full_path: project.full_path, - issues_list_path: project_issues_path(project), + full_path: resource_parent.full_path, + issues_list_path: + resource_parent.is_a?(Group) ? issues_group_path(resource_parent) : project_issues_path(resource_parent), register_path: new_user_registration_path(redirect_to_referer: 'yes'), sign_in_path: new_session_path(:user, redirect_to_referer: 'yes'), new_comment_template_path: profile_comment_templates_path, |