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

(-)a/C4/Reserves.pm (-4 / +6 lines)
Lines 1254-1263 sub ModReserveAffect { Link Here
1254
        $transfer->receive if $transfer;
1254
        $transfer->receive if $transfer;
1255
1255
1256
        # if this hold was part of a group, cancel other holds in the group
1256
        # if this hold was part of a group, cancel other holds in the group
1257
        my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id });
1257
        if ( $hold->hold_group_id ) {
1258
        foreach my $h ( @holds ) {
1258
            my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id });
1259
            push @reserve_ids, $h->reserve_id;
1259
            foreach my $h ( @holds ) {
1260
            $h->cancel unless $h->reserve_id == $hold->reserve_id;
1260
                push @reserve_ids, $h->reserve_id;
1261
                $h->cancel unless $h->reserve_id == $hold->reserve_id;
1262
            }
1261
        }
1263
        }
1262
    }
1264
    }
1263
1265
(-)a/Koha/Hold.pm (-4 / +6 lines)
Lines 798-808 sub fill { Link Here
798
                if C4::Context->preference('HoldsLog');
798
                if C4::Context->preference('HoldsLog');
799
799
800
            # if this hold was part of a group, cancel other holds in the group
800
            # if this hold was part of a group, cancel other holds in the group
801
            my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id });
801
            if ( $hold->hold_group_id ) {
802
            foreach my $h ( @holds ) {
802
                my @holds = Koha::Holds->search({ hold_group_id => $hold->hold_group_id });
803
                $h->cancel unless $h->reserve_id == $hold->reserve_id;
803
                foreach my $h ( @holds ) {
804
804
                    $h->cancel unless $h->reserve_id == $hold->reserve_id;
805
                }
805
            }
806
            }
807
806
            Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
808
            Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue->new->enqueue(
807
                {
809
                {
808
                    biblio_ids => [ $old_me->biblionumber ]
810
                    biblio_ids => [ $old_me->biblionumber ]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-3 / +2 lines)
Lines 186-194 Link Here
186
                [%- IF hold.non_priority -%]
186
                [%- IF hold.non_priority -%]
187
                    <br><i>Non priority hold</i>
187
                    <br><i>Non priority hold</i>
188
                [%- END -%]
188
                [%- END -%]
189
                [% IF hold.hold_group_id %]
189
                [%- IF hold.hold_group_id -%]
190
                    <div>(part of a <a href="/cgi-bin/koha/reserve/hold-group.pl?hold_group_id=[% hold.hold_group_id | uri %]" class="hold-group">hold group</a>)</div>
190
                    <div>(part of a <a href="/cgi-bin/koha/reserve/hold-group.pl?hold_group_id=[% hold.hold_group_id | uri %]" class="hold-group">hold group</a>)</div>
191
                [% END %]
191
                [%- END -%]
192
            </td>
192
            </td>
193
            [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
193
            [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%]
194
            [%- UNLESS hold.found -%]
194
            [%- UNLESS hold.found -%]
195
- 

Return to bug 15516