Bug 17708: Added a logaction function in Addrenewal in order to send renew logs
authorBaptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
Wed, 8 Feb 2017 08:54:42 +0000 (08:54 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 12:36:16 +0000 (12:36 +0000)
commit53ebb5c33b474ce507d1e7c239dbffb3d1842b1b
treea752310d46fe4b7dcb5e8319697d6e3020cc6fbf
parentb041dfa1800249f0179cb6839eda029026d088ca
Bug 17708: Added a logaction function in Addrenewal in order to send renew logs

20/02/17 : added the syspref RenewalLog
24/20/17 : added a test for the syspref Renewal Log

test plan
1 - Chose a Borrower and have him renewing an item
2 - Check the renew logs : they should be empty
3 - Apply patch and set the syspref RenewalLog to 1
4 - Have the Borrower renewing a new item
5 - Check the renew logs : there should be your renew

I called the function logaction, which is in charge of modifying the
logs, within the function which adds a new renewal at the list.

Signed-off-by: Julien Comte <julien.comte@u-psud.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm
installer/data/mysql/atomicupdate/bug_17708_add-RenewalLog.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref
t/db_dependent/Circulation.t