From adb4e1d9d593e47ed8ea1ae6b4e1634d411c8e76 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 17 Sep 2024 12:14:23 +0000 Subject: [PATCH] Bug 37483: Use cud-list for extend due dates tool This patch switch the check in the script to 'cud-list' - we use the same form submission if listing for preview or directly updating dates, so this may or may not be a cud- action - assuming it is restores script functionality. See bug 37941 for updating forms to not share actions To test: 1 - Checkout some items to patrons of at least two libraries 2 - Tools -> Batch extend due dates 3 - Select nothing except 'preview' and submit 4 - Blank screen 5 - Apply patch, repeat 6 - It works! 7 - Filter by library and confirm it still works 8 - Sign off! Signed-off-by: Janusz Kaczmarek Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit b2e396f08da6ebcaa23af0e9db29c68543cabfe5) Signed-off-by: Lucas Gass --- tools/batch_extend_due_dates.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batch_extend_due_dates.pl b/tools/batch_extend_due_dates.pl index d6b0e84fc8..42bff8b46c 100755 --- a/tools/batch_extend_due_dates.pl +++ b/tools/batch_extend_due_dates.pl @@ -46,7 +46,7 @@ my @issue_ids; if ( $op eq 'form' ) { $template->param( view => 'form', ); } -elsif ( $op eq 'list' ) { +elsif ( $op eq 'cud-list' ) { my @categorycodes = $input->multi_param('categorycodes'); my @itemtypecodes = $input->multi_param('itemtypecodes'); -- 2.39.5