Bug 41801: (QA follow-up) Remove dead ignoreSetLowestRank param and update POD

The recursive self-call loop that ignoreSetLowestRank guarded against was
removed by the main patch. Remove the now-unused parameter from both the
function body and the POD documentation, and fix a double-word typo in the
POD while here.

(cherry picked from commit 8e8a5f914e)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Martin Renvoize 2026-03-09 09:29:08 +00:00 committed by Jacob O'Mara
parent d31798b8aa
commit 590f1360eb
No known key found for this signature in database
1 changed files with 5 additions and 10 deletions

View File

@ -1720,7 +1720,6 @@ sub SuspendAll {
FixPriority({
reserve_id => $reserve_id,
[rank => $rank,]
[ignoreSetLowestRank => $ignoreSetLowestRank]
});
or
@ -1742,20 +1741,16 @@ then have reserves.priority set so that the first non-captured hold
has its priority set to 1, the second non-captured hold has its priority
set to 2, and so forth.
In both cases, holds that have the lowestPriority flag on are have their
In both cases, holds that have the lowestPriority flag on have their
priority adjusted to ensure that they remain at the end of the line.
Note that the ignoreSetLowestRank parameter is meant to be used only
when FixPriority calls itself.
=cut
sub FixPriority {
my ($params) = @_;
my $reserve_id = $params->{reserve_id};
my $rank = $params->{rank} // '';
my $ignoreSetLowestRank = $params->{ignoreSetLowestRank};
my $biblionumber = $params->{biblionumber};
my ($params) = @_;
my $reserve_id = $params->{reserve_id};
my $rank = $params->{rank} // '';
my $biblionumber = $params->{biblionumber};
my $dbh = C4::Context->dbh;