From 1d60fd79a47cd1dcc3f8e9e1e27ac2c887d77f3c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 23 Jun 2023 15:13:42 +0000 Subject: [PATCH] Bug 34080: Make suggestions_batch_ops a class To test: 1. Make some suggestions with different statuses. 2. Try moving some suggestion to different statuses. 3. Going from PENDING to another status works fine. 4. Moving from other status (REJECTED, ORDERED, etc ) will cause a 500 error. 5. Apply patch 6. Try 2 - 4 again, no more 500 errors, yay! Signed-off-by: Sam Lau Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 86363cc05f..b1b442d79c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -862,7 +862,7 @@

Change selected suggestions

-
+
@@ -1390,7 +1390,7 @@ }); // Note: the selector below passes a second 'context' param - it is not a multiple selector - $("button[type='submit']", "#suggestions_batch_ops").on("click", function(e) { + $("button[type='submit']", ".suggestions_batch_ops").on("click", function(e) { var submit_button = this; var form = $(submit_button).parents("form"); var action = $(submit_button).val(); -- 2.39.5