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 158-163 Link Here
158
                [% ELSE %]
158
                [% ELSE %]
159
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
159
                    <strong>[% itemsloo.barcode | html %]</strong> <em>or any available</em>
160
                [% END %]
160
                [% END %]
161
                [% IF itemsloo.hold_group_id %]
162
                    <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>
163
                [% END %]
161
            </td>
164
            </td>
162
            <td class="hq-patron">
165
            <td class="hq-patron">
163
              <p>
166
              <p>
164
- 

Return to bug 15516