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:
parent
c018a9de48
commit
07a4446f2f
1 changed files with 7 additions and 7 deletions
|
@ -29,22 +29,22 @@ my $cgi = CGI->new;
|
|||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "patron_lists/lists.tt",
|
||||
query => $cgi,
|
||||
type => "intranet",
|
||||
template_name => "patron_lists/lists.tt",
|
||||
query => $cgi,
|
||||
type => "intranet",
|
||||
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');
|
||||
|
||||
if (defined $id && $id ne '') {
|
||||
DelPatronList({ patron_list_id => $id });
|
||||
if ( defined $id && $id ne '' ) {
|
||||
DelPatronList( { patron_list_id => $id } );
|
||||
}
|
||||
if (@lists_ids) {
|
||||
foreach my $list_id (@lists_ids) {
|
||||
DelPatronList({ patron_list_id => $list_id });
|
||||
DelPatronList( { patron_list_id => $list_id } );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue