From 29daece9bc0fe6a25774ea2b73023888863df7d6 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Wed, 31 Jul 2024 09:06:02 +0000 Subject: [PATCH] Bug 37533: Fix query in orderreceive.tt The new validation in the REST API will no longer allow the operator "in". Consequently, it has to be replaced with the allowed "-in". Test plan: * Open an invoice and click "Go to receipt page" and on any basket click "receive" and make sure the dialog box appears. Signed-off-by: Aleisha Amohia Signed-off-by: David Cook Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index ba3e00dfb4..bbd320328d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -554,7 +554,7 @@ $(document).ready(function(){ // keep a copy for re-rendering var $funds_tree = $('#bookfund').html(); - var base_query = { "order_id": {"in": [[% multiple_orders | html %]]}}; + var base_query = { "order_id": {"-in": [[% multiple_orders | html %]]}}; var pending_orders_url = "/api/v1/acquisitions/orders?only_active=1"; var options = { "ajax": { -- 2.39.5