]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 21 Oct 2024 12:54:09 +0000 (14:54 +0200)
commit3c69ec8018f79a3c7eb45bec47999a7ec4efeb43
treefa5a7467e6a60f5ba471c877f186db797453b025
parentba625f89444f80f82f03789bcf98343005e8d137
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>
(cherry picked from commit a40b6d538d8e4b808cd9a65bca4f2281895fc186)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Biblio.pm
misc/cronjobs/update_totalissues.pl