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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+3 lines)
Lines 219-224 Link Here
219
                                [% IF ( ERROR_child_no_guarantor ) %]
219
                                [% IF ( ERROR_child_no_guarantor ) %]
220
                                    <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li>
220
                                    <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li>
221
                                [% END %]
221
                                [% END %]
222
                                [% IF ( ERROR_child_is_guarantor ) %]
223
                                    <li id="ERROR_child_is_guarantor">Child patron cannot be a guarantor.</li>
224
                                [% END %]
222
                                [% IF ( ERROR_guarantor_is_guarantee ) %]
225
                                [% IF ( ERROR_guarantor_is_guarantee ) %]
223
                                    <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li>
226
                                    <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li>
224
                                [% END %]
227
                                [% END %]
(-)a/members/memberentry.pl (-2 / +2 lines)
Lines 297-303 foreach my $guarantor (@guarantors) { Link Here
297
    if (   ( $op eq 'cud-save' || $op eq 'cud-insert' )
297
    if (   ( $op eq 'cud-save' || $op eq 'cud-insert' )
298
        && ( $guarantor->is_child || $guarantor->is_guarantee || ( $patron && $patron->is_guarantor ) ) )
298
        && ( $guarantor->is_child || $guarantor->is_guarantee || ( $patron && $patron->is_guarantor ) ) )
299
    {
299
    {
300
        push @errors, 'ERROR_guarantor_is_guarantee';
300
        push @errors, 'ERROR_child_is_guarantor'     if ( $guarantor->is_child );
301
        push @errors, 'ERROR_guarantor_is_guarantee' if ( !$guarantor->is_child );
301
    }
302
    }
302
}
303
}
303
304
304
- 

Return to bug 38892