[Koha-bugs] [Bug 21975] Unnecessary substitutions in automatic item modification by age

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 7 16:41:58 CET 2018


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

--- Comment #3 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 82985
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82985&action=edit
Bug 21975: Avoid unnecessary substitutions in automatic item modification by
age

Automatic item modification by age cronjob is based on rules with conditions
and substitutions.
When substitution value is equal to actual item value, the code should not call
C4::Items::ModItem. It adds unnecessary action log and entry in zebraqueue.
With a rule than can impact all catalogue you can explode your database with
action logs.

Test plan :
1) Run prove t/db_dependent/Items/AutomaticItemModificationByAge.t
2) Define a item modification by age with no condition
3) Run several times misc/cronjobs/automatic_item_modification_by_age.pl
4) Check it creates only one entry in action_logs and zebraqueue

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


More information about the Koha-bugs mailing list