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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +5 lines)
Lines 246-252 function validate1(date) { Link Here
246
    [% ELSIF guarantor %]
246
    [% ELSIF guarantor %]
247
        <li>
247
        <li>
248
            <span class="label">Guarantor:</span>
248
            <span class="label">Guarantor:</span>
249
            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a>
249
            [% IF guarantor.borrowernumber %]
250
                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber %]">[% guarantor.firstname %] [% guarantor.surname %]</a>
251
            [% ELSE %]
252
            [% guarantor.firstname %] [% guarantor.surname %]
253
            [% END %]
250
        </li>
254
        </li>
251
    [% END %]
255
    [% END %]
252
</ol>
256
</ol>
(-)a/members/moremember.pl (-1 / +5 lines)
Lines 169-174 if ( my $guarantor = $patron->guarantor ) { Link Here
169
    $template->param( guarantor => $guarantor );
169
    $template->param( guarantor => $guarantor );
170
    push @relatives, $guarantor->borrowernumber;
170
    push @relatives, $guarantor->borrowernumber;
171
    push @relatives, $_->borrowernumber for $patron->siblings;
171
    push @relatives, $_->borrowernumber for $patron->siblings;
172
} elsif ( $patron->contactname || $patron->contactfirstname ) {
173
    $template->param( guarantor => {
174
        firstname => $patron->contactfirstname,
175
        surname   => $patron->contactname,
176
        });
172
} else {
177
} else {
173
    my @guarantees = $patron->guarantees;
178
    my @guarantees = $patron->guarantees;
174
    $template->param( guarantees => \@guarantees );
179
    $template->param( guarantees => \@guarantees );
175
- 

Return to bug 15928