This patch removes the unused method.
Likely a leftover from ancient ages. AddIssue already fills the hold and
is called in the Checkout.pm library.
To test:
1. Run:
$ git grep fill_reserve
=> FAIL: Notice it is only mentioned in the line that defines it
2. Apply this patch
3. Repeat 1
=> SUCCESS: Removed.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
return unless $converted;
return ($number == $converted);
}
-# FIXME: This methods is very likely not used. It's only reference in the codebase
-# is itself. I'm 'fixing' it so we can remove ModReserveFill. But filing a bug
-# for properly removing it.
-sub fill_reserve {
- my $self = shift;
- my $hold = shift or return;
- foreach (qw(biblionumber borrowernumber reservedate)) {
- $hold->{$_} or return;
- }
-
- my $hold_obj = Koha::Holds->find( $hold->id );
- return $hold_obj->fill;
-}
=head2 build_additional_item_fields_string