From 1c2e7237e399a251f8169a5fc08b2b8067f9931b Mon Sep 17 00:00:00 2001
From: Lucas Gass
Date: Tue, 15 Oct 2024 23:50:00 +0000
Subject: [PATCH] Bug 38183: Get the active tab number from data-attribute
To test:
1. Have more than 1 staff member who can manage suggestions
2. Create some suggestions
3. Move some suggestions to different statuses (Pending/Accepted/Rejected) so you have multiple tabs on the "Suggestions management" page.
4. Go to the first tab, check some suggestions, and click "Select manager" under "Update manager".
5. Pick a new manager, notice nothing changes on that tab.
6. Now look at the last tab in your list of tabs, see the suggestion manager has been set incorrectly to the last tab.
7. APPLY PATCH
8. Try 4-5 again. The manager should be selected correctly.
9. Try setting the manaager from every tab, making sure it works right.
Signed-off-by: Phil Ringnalda
Signed-off-by: Jonathan Druart
Signed-off-by: Katrin Fischer
(cherry picked from commit 2d28aa403a46e7e37fb48135398448f07ff079ac)
Signed-off-by: Lucas Gass
---
.../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
index 5d9e0bf8f4..9f2188af56 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
@@ -734,7 +734,7 @@
Check all | Uncheck all
-
+
|
@@ -1272,8 +1272,8 @@
[% INCLUDE 'calendar.inc' %]
[% PROCESS patron_search_modal columns => columns, modal_title => t("Select manager"), patron_search_modal_id => 'patron_search_modal_manager_' _ loop.count, table_id => 'patron_search_modal_manager_table_' _ loop.count %]
[% PROCESS patron_search_js columns => columns, filter => 'suggestions_managers', actions => ["select"], preview_on_name_click => 1, table_id => 'patron_search_modal_manager_table_' _ loop.count, callback => 'select_manager' %]
[% END %]
--
2.39.5