Bug 30930: (QA follow-up) Tidy code block

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-03-24 12:13:23 -04:00 committed by Tomas Cohen Arazi
parent cc61cd6313
commit 8fd51b2a63
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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'] } );