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

(-)a/C4/SIP/ILS/Transaction/Hold.pm (-8 / +3 lines)
Lines 86-99 sub drop_hold { Link Here
86
		$self->ok(0);
86
		$self->ok(0);
87
		return $self;
87
		return $self;
88
	}
88
	}
89
89
    my $item = Koha::Items->find({ barcode => $self->{item}->id });
90
    my $item = Koha::Items->find({ barcode => $self->{item}->id });
90
    my $holds = Koha::Holds->search(
91
    my $holds = $item->holds->search({ borrowernumber => $patron->borrowernumber });
91
        {
92
92
            biblionumber   => $item->biblionumber,
93
            itemnumber     => $item->itemnumber,
94
            borrowernumber => $patron->borrowernumber
95
        }
96
    );
97
    return $self unless $holds->count;
93
    return $self unless $holds->count;
98
94
99
    $holds->next->cancel;
95
    $holds->next->cancel;
100
- 

Return to bug 24175