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

(-)a/opac/sco/sco-main.pl (-2 / +2 lines)
Lines 158-168 elsif ( $patron && ( $op eq 'checkout' || $op eq 'renew' ) ) { Link Here
158
    if (scalar keys %$impossible) {
158
    if (scalar keys %$impossible) {
159
159
160
        my $issue_error = (keys %$impossible)[0]; # FIXME This is wrong, we assume only one error and keys are not ordered
160
        my $issue_error = (keys %$impossible)[0]; # FIXME This is wrong, we assume only one error and keys are not ordered
161
        my $title = ( $item ) ? $item->biblio->title : '';
161
162
162
        $template->param(
163
        $template->param(
163
            impossible                => $issue_error,
164
            impossible                => $issue_error,
164
            "circ_error_$issue_error" => 1,
165
            "circ_error_$issue_error" => 1,
165
            title                     => $item->biblio->title, # FIXME Need to be backport! GetItem did not return the biblio's title
166
            title                     => $title,
166
            hide_main                 => 1,
167
            hide_main                 => 1,
167
        );
168
        );
168
        if ($issue_error eq 'DEBT') {
169
        if ($issue_error eq 'DEBT') {
169
- 

Return to bug 22675