Bug 22097

Summary: CataloguingLog should be suppressed for item branch transfers
Product: Koha Reporter: Kyle M Hall (khall) <kyle>
Component: Architecture, internals, and plumbingAssignee: Kyle M Hall (khall) <kyle>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, josef.moravec, lucas, martin.renvoize, nick
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20419
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 18816    
Bug Blocks: 22160    
Attachments: Bug 22097: CataloguingLog should be suppressed for item branch transfers
Bug 22097: CataloguingLog should be suppressed for item branch transfers
Bug 22097: CataloguingLog should be suppressed for item branch transfers

Description Kyle M Hall (khall) 2019-01-10 19:31:06 UTC
Bug 18816 missed the fact that a branch transfer triggers ModItem and thus generates an action log line. We should not be creating those action logs, especially considering the transfers table itself already documents the transfer.
Comment 1 Kyle M Hall (khall) 2019-01-10 19:35:39 UTC
Created attachment 83773 [details] [review]
Bug 22097: CataloguingLog should be suppressed for item branch transfers

Bug 18816 missed the fact that a branch transfer triggers ModItem and thus generates an action log line. We should not be creating those action logs, especially considering the transfers table itself already documents the transfer.

Test Plan:
1) Enable CataloguingLog
2) Transfer an item to another branch
3) Note the new action log line created
4) Apply this patch
5) Create another item transfer
6) No new action log line should be created!
Comment 2 Owen Leonard 2019-01-10 19:57:06 UTC
Created attachment 83774 [details] [review]
Bug 22097: CataloguingLog should be suppressed for item branch transfers

Bug 18816 missed the fact that a branch transfer triggers ModItem and
thus generates an action log line. We should not be creating those
action logs, especially considering the transfers table itself already
documents the transfer.

Test Plan:
1) Enable CataloguingLog
2) Transfer an item to another branch
3) Note the new action log line created
4) Apply this patch
5) Create another item transfer
6) No new action log line should be created!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Kyle M Hall (khall) 2019-01-11 19:17:38 UTC
Thanks Owen!
Comment 4 Katrin Fischer 2019-02-03 10:28:12 UTC
Created attachment 84678 [details] [review]
Bug 22097: CataloguingLog should be suppressed for item branch transfers

Bug 18816 missed the fact that a branch transfer triggers ModItem and
thus generates an action log line. We should not be creating those
action logs, especially considering the transfers table itself already
documents the transfer.

Test Plan:
1) Enable CataloguingLog
2) Transfer an item to another branch
3) Note the new action log line created
4) Apply this patch
5) Create another item transfer
6) No new action log line should be created!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Katrin Fischer 2019-02-03 10:28:42 UTC
Behaviour of ModItem with and without the logging flag is already tested.
Comment 6 Nick Clemens (kidclamp) 2019-02-04 17:46:20 UTC
Awesome work all!

Pushed to master for 19.05
Comment 7 Martin Renvoize (ashimema) 2019-02-11 13:45:37 UTC
Pushed to 18.11.x for 18.11.03
Comment 8 Lucas Gass (lukeg) 2019-02-12 21:14:16 UTC
backported to 18.05.x for 18.05.09
Comment 9 Fridolin Somers 2019-02-15 06:50:40 UTC
Depends on Bug 18816 not in 17.11.x