From 9736be0f596780674da71189bd3faec529784751 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Nov 2024 11:51:59 +0100 Subject: [PATCH] Bug 38437: Auto-show modal on single receive Might have been broken by the bootstrap 5 upgrade, but not sure. Not sure why the click does not trigger the modal. 1. Place an order in acquisitions 1.1. Go to Acquisitions 1.2. Click 'Search' next to 'Search vendors' 1.3. Click 'Add to basket' next to 'My basket' 1.4. Search for an existing record (e.g. search for Shakespeare) 1.5. Click 'Add order' next to a result or in the detailed record 1.6. In the item form, choose an item type 1.7. Click 'Add item' 1.8. Choose a fund 1.9. Enter a price in 'Vendor price' 1.10. Click 'Save' 1.11. Click 'Close basket' 1.12. Click 'Yes, close' 2. Receive the order 2.1. Click 'Receive shipments' 2.2. Enter a value in 'Vendor invoice' 2.3. Click 'Next' 2.4. Click 'Receive' next to your order => The modal is shown Signed-off-by: Michaela Sieber Signed-off-by: Owen Leonard Signed-off-by: Emily Lamancusa --- 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 6172314ccc..4ac0cbc33c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -653,7 +653,7 @@ ], [% IF only_one_order %] "drawCallback": function( settings ) { - $(this).find("tbody tr td:last-child a.order_edit_toggle").click(); + $("#order_edit").modal("show"); }, [% END %] }; -- 2.34.1