Bug 34977: (QA follow-up) Tidy code

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-11-03 12:10:42 -04:00 committed by Tomas Cohen Arazi
parent c018a9de48
commit 07a4446f2f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -29,22 +29,22 @@ my $cgi = CGI->new;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{ {
template_name => "patron_lists/lists.tt", template_name => "patron_lists/lists.tt",
query => $cgi, query => $cgi,
type => "intranet", type => "intranet",
flagsrequired => { tools => 'manage_patron_lists' }, flagsrequired => { tools => 'manage_patron_lists' },
} }
); );
my $id = $cgi->param('patron_list_id'); my $id = $cgi->param('patron_list_id');
my @lists_ids = $cgi->multi_param('patron_lists_ids'); my @lists_ids = $cgi->multi_param('patron_lists_ids');
if (defined $id && $id ne '') { if ( defined $id && $id ne '' ) {
DelPatronList({ patron_list_id => $id }); DelPatronList( { patron_list_id => $id } );
} }
if (@lists_ids) { if (@lists_ids) {
foreach my $list_id (@lists_ids) { foreach my $list_id (@lists_ids) {
DelPatronList({ patron_list_id => $list_id }); DelPatronList( { patron_list_id => $list_id } );
} }
} }