From cb79bcbdb6a4a8ac62f9794480d10ccbbfe7fbc3 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 6 Aug 2024 16:16:07 +0200 Subject: [PATCH] MT#60300 fix sound sets list rendering for reseller * fix code typo that prevented correct rendering of the sound sets list for reseller roles Change-Id: I35ea38a37932b8dd563a0b95f7e2481a5c45cdbe (cherry picked from commit c7ae8c1dcfa4d884c19adaa9a1d0061943caccea) (cherry picked from commit 85e6f5e9e2a6b7b6da5b9303e3cdf52eca92be9d) --- lib/NGCP/Panel/Utils/Sounds.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/NGCP/Panel/Utils/Sounds.pm b/lib/NGCP/Panel/Utils/Sounds.pm index 25e83a671f..364eb66441 100644 --- a/lib/NGCP/Panel/Utils/Sounds.pm +++ b/lib/NGCP/Panel/Utils/Sounds.pm @@ -105,15 +105,14 @@ sub stash_soundset_list { splice @{ $dt_fields }, 2, 0, { name => 'contract.contact.email', search => 1, title => $c->loc('Customer') }; push @{ $dt_fields }, - { name => 'expose_to_customer', search => 1, title => $c->loc('Expose to Customer') }, + { name => 'expose_to_customer', search => 1, title => $c->loc('Expose to Customer') }; } elsif ($c->user->roles eq "reseller") { splice @{ $dt_fields }, 1, 0, { name => 'contract.contact.email', search => 1, title => $c->loc('Customer') }; push @{ $dt_fields }, - { name => 'expose_to_customer', search => 1, title => $c->loc('Expose to Customer') }, + { name => 'expose_to_customer', search => 1, title => $c->loc('Expose to Customer') }; $sets_rs = $sets_rs->search({ 'me.reseller_id' => $c->user->reseller_id }); - } if ($contract || $c->user->roles eq "subscriberadmin") { @@ -151,7 +150,7 @@ sub stash_soundset_list { push @{ $dt_fields }, { name => 'user_role', visible => 0, search => 0, title => $c->loc('#UserRole') }, { name => 'user_contract_id', visible => 0, search => 0, title => $c->loc('#UserContractId') }, - { name => 'contract_id', visible => 0, search => 0, title => $c->loc('#Contract_id') }, + { name => 'contract_id', visible => 0, search => 0, title => $c->loc('#Contract_id') }; } $c->stash->{soundset_dt_columns} = NGCP::Panel::Utils::Datatables::set_columns($c, $dt_fields);