From faeebd74860224e0b70a3e2f1f33380ac0e4c1dd Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 Apr 2024 07:21:57 +0000 Subject: [PATCH] Bug 36018: (follow-up) Disambiguate quantity One of the embeds refers to suggestions. This table also has a quantity column. Test plan: Verify that Pending Orders table does load now instead of triggering an internal server error on ambiguous column. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- Koha/Acquisition/Orders.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Acquisition/Orders.pm b/Koha/Acquisition/Orders.pm index 2e8a9070e3..0911981cd7 100644 --- a/Koha/Acquisition/Orders.pm +++ b/Koha/Acquisition/Orders.pm @@ -166,7 +166,7 @@ sub filter_by_active { 'orderstatus' => [ 'new', 'ordered', 'partial' ] }, { 'orderstatus' => [ 'ordered', 'partial' ] } ], - quantityreceived => { '<', \['COALESCE(quantity,0)'] }, + quantityreceived => { '<', \['COALESCE(me.quantity,0)'] }, }, { join => 'basket' } ); -- 2.39.5