my $policy_holdallowed = !$itemLoopIter->{already_reserved}; This "already_reserved" is never used.
Created attachment 138834 [details] [review] Bug 31307: Remove 'already_reserved' flag from opac-reserve.pl It was never set (was set before 14695)
Created attachment 138920 [details] [review] Bug 31307: Remove 'already_reserved' flag from opac-reserve.pl It was never set (was set before 14695) Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Trivial, passing QA
For the record: $ git grep already_reserved | grep -v translator koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt: [% IF ( bibitemloo.already_reserved ) %] koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt: [% END # / IF bibitemloo.already_reserved %] opac/opac-reserve.pl: $biblioLoopIter{already_reserved} = $biblioData->{already_reserved}; opac/opac-reserve.pl: if ($biblioLoopIter{already_reserved}) {
Pushed to master for 22.11. Nice work everyone, thanks!
(In reply to Tomás Cohen Arazi from comment #4) > For the record: > > $ git grep already_reserved | grep -v translator > > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt: > [% IF ( bibitemloo.already_reserved ) %] > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt: > [% END # / IF bibitemloo.already_reserved %] > opac/opac-reserve.pl: $biblioLoopIter{already_reserved} = > $biblioData->{already_reserved}; > opac/opac-reserve.pl: if ($biblioLoopIter{already_reserved}) { Yes, the commit message could have been a bit more verbose. The flag was set to $itemLoopIter, which was never used. biblioLoopIter does use it.