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

(-)a/circ/view_holdsqueue.pl (+2 lines)
Lines 53-58 if ( $run_report ) { Link Here
53
    my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit);
53
    my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit);
54
    for my $item ( @$items ) {
54
    for my $item ( @$items ) {
55
        $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
55
        $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
56
        my $related_hold = Koha::Holds->search({ borrowernumber => $item->{borrowernumber}, reservedate => $item->{reservedate}, biblionumber => $item->{biblionumber} }, { order_by => 'reservedate' })->next;
57
        $item->{hold_group_id} = $related_hold ? $related_hold->hold_group_id : undef;
56
    }
58
    }
57
    $template->param(
59
    $template->param(
58
        branchlimit     => $branchlimit,
60
        branchlimit     => $branchlimit,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt (-1 / +3 lines)
Lines 181-186 Link Here
181
                [% ELSE %]
181
                [% ELSE %]
182
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
182
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
183
                [% END %]
183
                [% END %]
184
                [% IF itemsloo.hold_group_id %]
185
                    <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>
186
                [% END %]
184
            </td>
187
            </td>
185
            <td class="hq-patron">
188
            <td class="hq-patron">
186
              <p>
189
              <p>
187
- 

Return to bug 15516