eval {
my $af = Koha::AdditionalFields->find($field_id);
$af->set($set_fields);
if ( !$af->is_system ) {
$updated = $af->store ? 1 : 0;
}
};
push @messages, {
code => 'cud-update',
my $deleted = 0;
$deleted = $af->delete;
code => 'cud-delete',
messages => \@messages,
);
output_html_with_http_headers $input, $cookie, $template->output;
-