From: Bernd Bleßmann Date: Mon, 20 Dec 2021 09:52:49 +0000 (+0100) Subject: SL::File: auch bei get_all_count Durckvariante berücksichtigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~251 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e26881e3c924b1293ff34002986ea96bbdb41b89;p=kivitendo-erp.git SL::File: auch bei get_all_count Durckvariante berücksichtigen --- diff --git a/SL/File.pm b/SL/File.pm index afc0cee1a..761a0ad7f 100644 --- a/SL/File.pm +++ b/SL/File.pm @@ -99,10 +99,11 @@ sub get_all_count { object_id => $params{object_id}, object_type => $params{object_type} ); - push @query, (file_name => $params{file_name}) if $params{file_name}; - push @query, (file_type => $params{file_type}) if $params{file_type}; - push @query, (mime_type => $params{mime_type}) if $params{mime_type}; - push @query, (source => $params{source}) if $params{source}; + push @query, (file_name => $params{file_name}) if $params{file_name}; + push @query, (file_type => $params{file_type}) if $params{file_type}; + push @query, (mime_type => $params{mime_type}) if $params{mime_type}; + push @query, (source => $params{source}) if $params{source}; + push @query, (print_variant => $params{print_variant}) if $params{print_variant}; my $cnt = SL::DB::Manager::File->get_all_count(query => [@query]); return $cnt;