Bug 30462: Fix display of the complete jobs
We want to display the jobs terminated in the last hour, not today. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
e0363127a4
commit
e9ac367a05
|
|
@ -96,14 +96,14 @@ if ( $op eq 'list' ) {
|
|||
$can_manage_background_jobs
|
||||
? Koha::BackgroundJobs->search(
|
||||
{
|
||||
ended_on => { '>=' => $dtf->format_date($ended_since) }
|
||||
ended_on => { '>=' => $dtf->format_datetime($ended_since) }
|
||||
},
|
||||
{ order_by => { -desc => 'enqueued_on' } }
|
||||
)
|
||||
: Koha::BackgroundJobs->search(
|
||||
{
|
||||
borrowernumber => $logged_in_user->borrowernumber,
|
||||
ended_on => { '>=' => $dtf->format_date($ended_since) }
|
||||
ended_on => { '>=' => $dtf->format_datetime($ended_since) }
|
||||
},
|
||||
{ order_by => { -desc => 'enqueued_on' } }
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue