Bug 10933: (followup of the followup) fix the previous patch to work with master
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
dca6b23302
commit
7bde40a2d5
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ delete_all( $userid );
|
|||
|
||||
add( $userid, $current_sessionid, $previous_sessionid, $total, $query_cgi_b, $query_cgi_a );
|
||||
warning_like { C4::Search::History::delete({}) }
|
||||
qr/^ERROR: userid or id is required for history deletion/,
|
||||
qr/^ERROR: userid, id or interval is required for history deletion/,
|
||||
'Calling delete without userid raises warning';
|
||||
$all = C4::Search::History::get({userid => $userid});
|
||||
is( scalar(@$all), 9, 'There are still 9 searches after calling delete without userid' );
|
||||
|
|
Loading…
Reference in a new issue