From: Moritz Bunkus Date: Tue, 7 Jun 2016 09:22:55 +0000 (+0200) Subject: Verkaufspreisinformationen: »Seite:« nicht anzeigen, wenn es nur eine gibt X-Git-Tag: release-3.4.1~100 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=47a61292a4137d0986b87cc4d87777e6507072f3;p=kivitendo-erp.git Verkaufspreisinformationen: »Seite:« nicht anzeigen, wenn es nur eine gibt In dem Fall ist $self->{pages}{cur} 0 oder undef und nicht 1. --- diff --git a/SL/Controller/SellPriceInformation.pm b/SL/Controller/SellPriceInformation.pm index ddaf76549..5ba23efe7 100644 --- a/SL/Controller/SellPriceInformation.pm +++ b/SL/Controller/SellPriceInformation.pm @@ -164,7 +164,7 @@ sub displayable_filter { push @texts, [ $::locale->text('Type'), $::locale->text($filter->{order}{type}) ] if $filter->{order}{type}; push @texts, [ $::locale->text('Sort By'), $column_defs->{$self->{sort_by}}{text} ] if $column_defs->{$self->{sort_by}}{text}; - push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} != 1; + push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} > 1; return join '; ', map { "$_->[0]: $_->[1]" } @texts; }