Skip to content

Commit

Permalink
Issue #1539: Revert "CustomerCompanySearchListLimit and CustomerUserS…
Browse files Browse the repository at this point in the history
…earchListLimit do not work in the overview pages."

This reverts commit 62590ff.
  • Loading branch information
Sven committed Feb 7, 2022
1 parent a7c6dda commit 6fa52da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Kernel/Modules/AdminCustomerCompany.pm
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,9 @@ sub _Overview {
next SOURCE if !$ConfigObject->Get("CustomerCompany$Count");
my $CustomerUserMap = $ConfigObject->Get("CustomerCompany$Count");
next SOURCE if !$CustomerUserMap->{CustomerCompanySearchListLimit};
$Limit = $CustomerUserMap->{CustomerCompanySearchListLimit};
if ( $CustomerUserMap->{CustomerCompanySearchListLimit} < $Limit ) {
$Limit = $CustomerUserMap->{CustomerCompanySearchListLimit};
}
}

my %ListAllItems = $CustomerCompanyObject->CustomerCompanyList(
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Modules/AdminCustomerUser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,9 @@ sub _Overview {
next SOURCE if !$ConfigObject->Get("CustomerUser$Count");
my $CustomerUserMap = $ConfigObject->Get("CustomerUser$Count");
next SOURCE if !$CustomerUserMap->{CustomerUserSearchListLimit};
$Limit = $CustomerUserMap->{CustomerUserSearchListLimit};
if ( $CustomerUserMap->{CustomerUserSearchListLimit} < $Limit ) {
$Limit = $CustomerUserMap->{CustomerUserSearchListLimit};
}
}

my %ListAllItems = $CustomerUserObject->CustomerSearch(
Expand Down

0 comments on commit 6fa52da

Please sign in to comment.