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 211-216 legend.collapsed i.fa.fa-caret-down::before { Link Here
211
                                    [% IF ( ERROR_child_no_guarantor ) %]
211
                                    [% IF ( ERROR_child_no_guarantor ) %]
212
                                        <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li>
212
                                        <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li>
213
                                    [% END %]
213
                                    [% END %]
214
                                    [% IF ( ERROR_child_is_guarantor ) %]
215
                                        <li id="ERROR_child_is_guarantor">Child patron cannot be a guarantor.</li>
216
                                    [% END %]
214
                                    [% IF ( ERROR_guarantor_is_guarantee ) %]
217
                                    [% IF ( ERROR_guarantor_is_guarantee ) %]
215
                                        <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li>
218
                                        <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li>
216
                                    [% END %]
219
                                    [% END %]
(-)a/members/memberentry.pl (-2 / +2 lines)
Lines 288-294 foreach my $guarantor (@guarantors) { Link Here
288
    if (   ( $op eq 'cud-save' || $op eq 'cud-insert' )
288
    if (   ( $op eq 'cud-save' || $op eq 'cud-insert' )
289
        && ( $guarantor->is_child || $guarantor->is_guarantee || ( $patron && $patron->is_guarantor ) ) )
289
        && ( $guarantor->is_child || $guarantor->is_guarantee || ( $patron && $patron->is_guarantor ) ) )
290
    {
290
    {
291
        push @errors, 'ERROR_guarantor_is_guarantee';
291
        push @errors, 'ERROR_child_is_guarantor'     if ( $guarantor->is_child );
292
        push @errors, 'ERROR_guarantor_is_guarantee' if ( !$guarantor->is_child );
292
    }
293
    }
293
}
294
}
294
295
295
- 

Return to bug 38892