From e4e4953f615b144f20ea457ed02282531a04127f 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: Katrin Fischer --- 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