From 63e9de86f886661dc620b067a40bff0abf5e0dba Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 10 Apr 2024 11:56:01 +0000 Subject: [PATCH] Bug 36137: Make update_totalissues cron always skip the holds queue To test: 1. Run the update_totalissues cron, the holds queue is updated. 2. APPLY PATCH, restart services 3. Run update_totalissues cron again, this time the holds queue should always be skipped. Signed-off-by: Matt Blenkinsop Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit 307acdf96b28c722a0027c1eeadb4c98ab38eeef) Signed-off-by: Fridolin Somers (cherry picked from commit bc8788cf93c452d1b94715af4e84341c072fc704) Signed-off-by: Lucas Gass --- C4/Biblio.pm | 2 ++ misc/cronjobs/update_totalissues.pl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 5d29b9d491..acfd4b4ceb 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3019,6 +3019,8 @@ Update the total issue count for a particular bib record. =item C<$value> is the absolute value that total issues count should be set to. If provided, C<$increase> is ignored. +=item C<$skip_holds_queue> parameter to optionally skip updating the holds queue. + =back =cut diff --git a/misc/cronjobs/update_totalissues.pl b/misc/cronjobs/update_totalissues.pl index eee8fdef62..3e3a66b1f2 100755 --- a/misc/cronjobs/update_totalissues.pl +++ b/misc/cronjobs/update_totalissues.pl @@ -168,10 +168,10 @@ sub process_query { if ( not $test_only ) { my $ret; if ( $incremental && $totalissues > 0 ) { - $ret = UpdateTotalIssues( $biblionumber, $totalissues ); + $ret = UpdateTotalIssues( $biblionumber, $totalissues, undef, 1 ); } else { - $ret = UpdateTotalIssues( $biblionumber, 0, $totalissues ); + $ret = UpdateTotalIssues( $biblionumber, 0, $totalissues, 1 ); } unless ($ret) { print "Error while processing bib $biblionumber\n" if $verbose; -- 2.39.5