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

(-)a/circ/view_holdsqueue.pl (+2 lines)
Lines 56-61 if ( $run_report ) { Link Here
56
    });
56
    });
57
    for my $item ( @$items ) {
57
    for my $item ( @$items ) {
58
        $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
58
        $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
59
        my $related_hold = Koha::Holds->search({ borrowernumber => $item->{borrowernumber}, reservedate => $item->{reservedate}, biblionumber => $item->{biblionumber} }, { order_by => 'reservedate' })->next;
60
        $item->{hold_group_id} = $related_hold ? $related_hold->hold_group_id : undef;
59
    }
61
    }
60
    $template->param(
62
    $template->param(
61
        branchlimit     => $branchlimit,
63
        branchlimit     => $branchlimit,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-1 / +3 lines)
Lines 190-195 Link Here
190
                [% ELSE %]
190
                [% ELSE %]
191
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
191
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
192
                [% END %]
192
                [% END %]
193
                [% IF itemsloo.hold_group_id %]
194
                    <div>(part of a <a href="/cgi-bin/koha/reserve/hold-group.pl?hold_group_id=[% itemsloo.hold_group_id %]" class="hold-group">hold group</a>)</div>
195
                [% END %]
193
            </td>
196
            </td>
194
            <td class="hq-patron">
197
            <td class="hq-patron">
195
              <p>
198
              <p>
196
- 

Return to bug 15516