From: Sven Schöling Date: Sun, 5 Dec 2021 18:34:21 +0000 (+0100) Subject: DeliveryOrder: prefix in type filter X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~47 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=acf587560085f4fb5661a7d9b064f5419befefe0;p=kivitendo-erp.git DeliveryOrder: prefix in type filter --- 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 {