From acf587560085f4fb5661a7d9b064f5419befefe0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Sun, 5 Dec 2021 19:34:21 +0100 Subject: [PATCH] DeliveryOrder: prefix in type filter --- SL/DB/Manager/DeliveryOrder.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/DB/Manager/DeliveryOrder.pm b/SL/DB/Manager/DeliveryOrder.pm index 3880bcf3a..e9c1ee7f2 100644 --- a/SL/DB/Manager/DeliveryOrder.pm +++ b/SL/DB/Manager/DeliveryOrder.pm @@ -28,8 +28,9 @@ __PACKAGE__->add_filter_specs( sub type_filter { my $class = shift; my $type = lc(shift || ''); + my $prefix = shift // ''; - return order_type => validate_type($type); + return "${prefix}order_type" => validate_type($type); } sub _sort_spec { -- 2.20.1