Bug 10933: (follow-up) fix the previous patch to work with master
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
c4d3002995
commit
75cd02c048
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ BEGIN {
|
|||
use C4::Context;
|
||||
use C4::Dates;
|
||||
use C4::Search;
|
||||
use C4::Search::History;
|
||||
use Getopt::Long;
|
||||
use C4::Log;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue