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 |
- |
|
|