From dbfd4e2f02bcaae1601622a973d29d609dc3c90f Mon Sep 17 00:00:00 2001 From: skalimer0 <8110622+skalimer0@users.noreply.github.com> Date: Wed, 15 May 2024 14:20:13 +0200 Subject: [PATCH 01/10] Update fr.yml --- config/locales/fr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 1260ed2..d962bdf 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -16,6 +16,7 @@ fr: field_related_projects: "Projets liés" field_answers_on_secondary_projects: "Réponses autorisées" multiprojects_selection_available_custom_fields: "Champs personnalisés disponibles pour sélectionner les projets" + multiprojects_selection_available_trackers: "Trackers dans lesquels les tâches multi-projets doit être activées" select_filter: "Sélectionnez un champ" advanced_selection: "Sélection avancée" selected_projects: "Projets sélectionnés" From fd9aeec4ae72999083a3ec693a1db4c4ab114e7b Mon Sep 17 00:00:00 2001 From: skalimer0 <8110622+skalimer0@users.noreply.github.com> Date: Wed, 15 May 2024 14:20:44 +0200 Subject: [PATCH 02/10] Update en.yml --- config/locales/en.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index bdf3a43..a3ccda0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -16,6 +16,7 @@ en: field_related_projects: "Related projects" field_answers_on_secondary_projects: "Answers allowed" multiprojects_selection_available_custom_fields: "Available custom fields to quickly select projects" + multiprojects_selection_available_trackers: "Trackers to activate multi-project issues" select_filter: "Select a filter" advanced_selection: "Advanced selection" selected_projects: "Selected projects" From fe8754c046107cd9465267c0715490f264cb6c84 Mon Sep 17 00:00:00 2001 From: skalimer0 <8110622+skalimer0@users.noreply.github.com> Date: Wed, 15 May 2024 14:21:00 +0200 Subject: [PATCH 03/10] Update de.yml --- config/locales/de.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/locales/de.yml b/config/locales/de.yml index 22cd7c1..dce64b7 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -16,6 +16,7 @@ de: field_related_projects: "Verwandte Projekte" field_answers_on_secondary_projects: "Antworten erlaubt" multiprojects_selection_available_custom_fields: "Available custom fields to quickly select projects" + multiprojects_selection_available_trackers: "Trackers to activate multi-project issues" select_filter: "Select a filter" advanced_selection: "Advanced selection" selected_projects: "Selected projects" From b8d1417337a6bc729f3d4d600a05b86ddb2b52a2 Mon Sep 17 00:00:00 2001 From: skalimer0 <8110622+skalimer0@users.noreply.github.com> Date: Wed, 15 May 2024 14:23:00 +0200 Subject: [PATCH 04/10] View if tracker is selected --- app/views/issues/_select_projects.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/issues/_select_projects.html.erb b/app/views/issues/_select_projects.html.erb index c6bd154..4080add 100644 --- a/app/views/issues/_select_projects.html.erb +++ b/app/views/issues/_select_projects.html.erb @@ -1,4 +1,4 @@ -<% if User.current.admin? || User.current.roles_for_project(@issue.project).any? {|r| r.has_permission?(:link_other_projects_to_issue)} %> +<% if (User.current.admin? || User.current.roles_for_project(@issue.project).any? {|r| r.has_permission?(:link_other_projects_to_issue)}) && Setting['plugin_redmine_multiprojects_issue']['trackers'].include?(@issue.tracker_id.to_s) %>