X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d7ca155122347833221c0f2ee084adc751a88f8b..ebe30b2d09629c061b8df6f3018adca7595a75d1:/SL/Controller/Part.pm diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index a0ff1e700..cfc94eea1 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -423,14 +423,14 @@ sub action_show_multi_items_dialog { } sub action_multi_items_update_result { - my $max_count = 100; + my $max_count = $::form->{limit}; my $count = $_[0]->multi_items_models->count; if ($count == 0) { my $text = escape($::locale->text('No results.')); $_[0]->render($text, { layout => 0 }); - } elsif ($count > $max_count) { + } elsif ($max_count && $count > $max_count) { my $text = escape($::locale->text('Too many results (#1 from #2).', $count, $max_count)); $_[0]->render($text, { layout => 0 }); } else {