Bug 10933: (follow-up) fix the previous patch to work with master
authorJoonas Kylmälä <j.kylmala@gmail.com>
Mon, 31 Aug 2015 11:41:44 +0000 (11:41 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Oct 2015 14:03:03 +0000 (11:03 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

C4/Search/History.pm
misc/cronjobs/cleanup_database.pl

index acb68e7..53a3758 100644 (file)
@@ -73,8 +73,8 @@ sub delete {
         $id = $id ? [ $id ] : [];
     }
 
-    unless ( $userid or @$id ) {
-        warn "ERROR: userid or id is required for history deletion";
+    unless ( $userid or @$id or $interval ) {
+        warn "ERROR: userid, id or interval is required for history deletion";
         return;
     }
 
index 41a41ae..e882b4b 100755 (executable)
@@ -37,6 +37,7 @@ BEGIN {
 use C4::Context;
 use C4::Dates;
 use C4::Search;
+use C4::Search::History;
 use Getopt::Long;
 use C4::Log;