]> git.koha-community.org Git - koha.git/commit
Bug 36474: Don't update records when total issues has not changed
authorNick Clemens <nick@bywatersolutions.com>
Mon, 1 Apr 2024 15:00:34 +0000 (15:00 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 24 Sep 2024 15:22:52 +0000 (15:22 +0000)
commita40b6d538d8e4b808cd9a65bca4f2281895fc186
tree6ed8d16a133e61b5562a728d4ce45338251af4dd
parent7a9bddd516fd12d9d8fa1c0390b0e81d880360f5
Bug 36474: Don't update records when total issues has not changed

This patch adds a new check in UpdateTotalIssues to check that we are changing the number
of total issues before calling ModBiblio

To test:
0 - Enable CataloguingLog
1 - Checkout an item
2 - Run : misc/cronjobs/update_totalissues.pl --use-stats --commit=1000 -v
3 - In report, note all biblios were updated
4 - Check action_logs - note a new entry for every biblio
5 - Apply patch
6 - Repeat
7 - Note no biblios reported updated
8 - Note no new cataloguing log entries
9 - Checkout the item again
10 - Run again
11 - Note biblionumber has updated count in verbose output
12 - Note report only rpeort 1 biblio modified, the rest only processed
13 - Only one line added to action_logs
14 - Run it again
15 - Confirm no updates

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d7b36d7f692420a5b67dee88ce78529ce7509413)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Biblio.pm
misc/cronjobs/update_totalissues.pl