From 044f9472d5a011994f58e94e3e98a1f6f0702fea Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 24 Mar 2023 12:13:23 -0400 Subject: [PATCH] Bug 30930: (QA follow-up) Tidy code block Signed-off-by: Kyle M Hall --- authorities/authorities.pl | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 34554b5ecee..501a012d241 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -631,19 +631,24 @@ if ($op eq "add") { } exit; } else { -if ($op eq "duplicate") - { - $authid = ""; - } - if($changed_authtype eq "changed"){ - $record = TransformHtmlToMarc( $input, 0 ); - } + if ( $op eq "duplicate" ) { + $authid = ""; + } - build_tabs ($template, $record, $dbh, $input); - build_hidden_data; - $template->param(oldauthtypetagfield=>$oldauthtypetagfield, oldauthtypetagsubfield=>$oldauthtypetagsubfield, - oldauthnumtagfield=>$oldauthnumtagfield, oldauthnumtagsubfield=>$oldauthnumtagsubfield, - authid => $authid , authtypecode=>$authtypecode, ); + if ( $changed_authtype eq "changed" ) { + $record = TransformHtmlToMarc( $input, 0 ); + } + + build_tabs( $template, $record, $dbh, $input ); + build_hidden_data; + $template->param( + oldauthtypetagfield => $oldauthtypetagfield, + oldauthtypetagsubfield => $oldauthtypetagsubfield, + oldauthnumtagfield => $oldauthnumtagfield, + oldauthnumtagsubfield => $oldauthnumtagsubfield, + authid => $authid, + authtypecode => $authtypecode, + ); } my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypetext'] } ); -- 2.30.2