From c0ef11b1489b22d462d07527a5c2e3b5778e725c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 17 Apr 2016 18:52:06 +0200 Subject: [PATCH] Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used To test: - Apply patch - Set syspref CronjobLog to "Log" - Set syspref PurgeSuggestionsOlderThan e.g. to 20 - From console, run misc/cronjobs/purge_suggestions.pl - Check entry in cgi-bin/koha/admin/preferences.pl?op=search&searchfield=log - Verify that log entry contains number of days (20, same as in syspref) - From console, run misc/cronjobs/purge_suggestions.pl -days 100 - Verify that log entry contains number of days (100, same as in param -days) --- misc/cronjobs/purge_suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/purge_suggestions.pl b/misc/cronjobs/purge_suggestions.pl index cf4c48b..c022c8a 100755 --- a/misc/cronjobs/purge_suggestions.pl +++ b/misc/cronjobs/purge_suggestions.pl @@ -68,7 +68,7 @@ if ($help) { } if ( defined($days) && $days ne q{} && $days > 0 ) { - cronlogaction(); + cronlogaction( " ( days: $days )"); DelSuggestionsOlderThan($days); } -- 1.7.10.4