From f2a1359c024550b61fabed611d69b5ac3edfde3c Mon Sep 17 00:00:00 2001
From: Jonathan Druart
Date: Thu, 17 Oct 2024 12:09:23 +0200
Subject: [PATCH] Bug 38192: Fix restoration of table state for suggestion
tables
There is one table per tab, the id of the table is table_N.
Say you have:
Pending (#table_1), Accepted (#table_2), Rejected (#table_3)
The state will be stored in localStorage with the following key:
DataTables_table_1_/cgi-bin/koha/suggestion/suggestion.pl
DataTables_table_2_/cgi-bin/koha/suggestion/suggestion.pl
DataTables_table_3_/cgi-bin/koha/suggestion/suggestion.pl
If you move all the suggestions from Accepted to Rejected, a shift will give:
Pending (#table_1), Rejected (#table_2)
And the previous state from the "Accepted" tab will be used for "Rejected"
Test plan:
Confirm the above, have several tabs then remove one by moving the
all suggestions to an other tab.
Test the other features on the edit and list views:
change status, update manager, etc.
---
.../prog/en/modules/suggestion/suggestion.tt | 36 +++++++++----------
1 file changed, 18 insertions(+), 18 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 3c86a275699..8b13d4c4c47 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
@@ -736,7 +736,7 @@
Check all | Uncheck all
-
+
@@ -888,7 +888,7 @@
[% END # /FOREACH s %]
-
+
@@ -899,9 +899,9 @@
[% IF CAN_user_suggestions_suggestions_manage %]