From bddcf045ccde1625cb159745089564e256f30d8c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 9 Jan 2023 14:09:29 +0000 Subject: [PATCH] Bug 32596: Filter jobs by enqueued on, not started on To test: 1 - Do a bunch of stuff in the staff interface the will generate background jobs 2 - Wait a bit to make sure all the jobs are done 3 - Visit Admin->Jobs 4 - Note there is nothing shown 5 - uncheck 'Current jobs only' and 'Only include jobs started in the last hour' 6 - Note that nothing is shown, but header says '(filtered from X jobs)' 7 - Apply patch 8 - Reload table 9 - Confirm you can see the finished jobs now Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 9b1488f251eedbeafc6c7eb817984a0ce523b6ad) Signed-off-by: Jacob O'Mara (cherry picked from commit b7ecfa0138d08e19c1aaf0a807ffdd42720944f4) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/admin/background_jobs.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt index 1432cbdc2a..1c3850943c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt @@ -121,7 +121,7 @@
- +
@@ -238,7 +238,7 @@ [% END %] let additional_filters = { - started_on: function(){ + enqueued_on: function(){ let now = new Date(); if ( $("#include_last_hour").is(":checked") ) { now.setHours(now.getHours() - 1); -- 2.39.5