]> git.koha-community.org Git - koha.git/commit
Bug 13287: Add a system preference to define the number of days used in purge_suggest...
authorremi <remi.mayrand-provencher@inLibro.com>
Tue, 28 Jul 2015 16:10:59 +0000 (12:10 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Feb 2018 16:24:45 +0000 (13:24 -0300)
commitbadaf236c9d49d852cb4bcb5754b9f032cd8b6c6
tree4bafcc1b1dbc30349c95d97d117aeaadd92ff1b0
parente466f0d1e390530de317ad34bb9495ef8a3b64f3
Bug 13287: Add a system preference to define the number of days used in purge_suggestions.pl

    The system preferences value is used whenever purge_suggestions.pl is called without the 'days' parameter.
    This patch uses the preference description suggested by comment #9.
    This version should now be cleanly applicable.

    I Apply the patch
    II Run updatedatabase.pl

    a) Run purge_suggestions.pl without the days parameter
       - validate that there is an error message
    b) Run purge_suggestions.pl with the days parameter
       - validate that there is no error message
    c) Insert a number of days in the system variable PurgeSuggestionsOlderThan
    d) Run purge_suggestions.pl without the days parameter
       - validate that there is no error message

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Tested per plan, all tests pass.

Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
misc/cronjobs/purge_suggestions.pl