Auto-list companies

Moderator: crythias

Locked
thoqui
Znuny newbie
Posts: 30
Joined: 10 Jun 2015, 14:43
Znuny Version: 3.3.8

Auto-list companies

Post by thoqui »

Hello,

I'm working on 3.3.8.
When you click on Customers, the Search textbox is already filled with *, and thus the list of customers automatically appears.
I wish the same with Companies, I added a code in Kernel\Modules\AdminCustomerCompany.pm but it doesn't work.

This is the code :

Code: Select all

sub Run {
    my ( $Self, %Param ) = @_;

    my $Nav = $Self->{ParamObject}->GetParam( Param => 'Nav' ) || 0;
    my $NavigationBarType = $Nav eq 'Agent' ? 'Companies' : 'Admin';
    my $Search = $Self->{ParamObject}->GetParam( Param => 'Search' );
    $Search
        ||= $Self->{ConfigObject}->Get('AdminCustomerCompany::RunInitialWildcardSearch') ? '*' : '';
Thanks for your help.

Thomas
Locked