[Koha-bugs] [Bug 36013] update_totalissues.pl should not log

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 8 13:04:55 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36013

Magnus Enger <magnus at libriotech.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #161797|0                           |1
        is obsolete|                            |

--- Comment #4 from Magnus Enger <magnus at libriotech.no> ---
Created attachment 162957
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162957&action=edit
Bug 36013: update_totalissues.pl should not log

Even when CataloguingLog is on, misc/cronjobs/update_totalissues.pl should not
log the changes.
It is useless and takes database space.

Do like bulkmarcimport.pl :
https://git.koha-community.org/Koha-community/Koha/src/branch/23.11.x/misc/migration_tools/bulkmarcimport.pl#L165

Test plan :
1) Enable system preference CataloguingLog
2) Perform some issues and returns
3) Run : misc/cronjobs/update_totalissues.pl --use-stats --commit=1000 -v
4) Go to Tools > Log viewer
5) Check there are no new cataloguing logs

Signed-off-by: Magnus Enger <magnus at libriotech.no>
Works as advertised. Before the patch, running the script adds one
entry to action_logs per record, with the patch nothing is logged.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list