View | Details | Raw Unified | Return to bug 35625
Collapse All | Expand All

(-)a/admin/additional-fields.pl (-5 / +8 lines)
Lines 67-74 if ( $op eq 'cud-add' ) { Link Here
67
67
68
        eval {
68
        eval {
69
            my $af = Koha::AdditionalFields->find($field_id);
69
            my $af = Koha::AdditionalFields->find($field_id);
70
            $af->set($set_fields);
70
            if ( !$af->is_system ) {
71
            $updated = $af->store ? 1 : 0;
71
                $af->set($set_fields);
72
                $updated = $af->store ? 1 : 0;
73
            }
72
        };
74
        };
73
        push @messages, {
75
        push @messages, {
74
            code => 'cud-update',
76
            code => 'cud-update',
Lines 107-113 if ( $op eq 'cud-delete' ) { Link Here
107
    my $deleted = 0;
109
    my $deleted = 0;
108
    eval {
110
    eval {
109
        my $af = Koha::AdditionalFields->find($field_id);
111
        my $af = Koha::AdditionalFields->find($field_id);
110
        $deleted = $af->delete;
112
        if ( !$af->is_system ) {
113
            $deleted = $af->delete;
114
        }
111
    };
115
    };
112
    push @messages, {
116
    push @messages, {
113
        code => 'cud-delete',
117
        code => 'cud-delete',
Lines 140-143 $template->param( Link Here
140
    messages => \@messages,
144
    messages => \@messages,
141
);
145
);
142
146
143
output_html_with_http_headers $input, $cookie, $template->output;
147
output_html_with_http_headers $input, $cookie, $template->output;
144
- 

Return to bug 35625