From 27816c1f912039b0dc250d6c780461b4774ebc61 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 10 Jan 2024 13:11:42 -0700 Subject: [PATCH] * Importexport: Fix scheduled jobs did not always update while in progress. Long IDs would get truncated by the database and were not properly updated --- importexport/inc/class.importexport_schedule_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index 34acfb4cc0..8151079577 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -277,7 +277,7 @@ class importexport_schedule_ui $definition_list = ((array)$definitions->get_definitions()); $id = 'importexport.'.$definition_list[0].'.'.$data['target']; - return $id; + return substr($id, 0, 64); } /** @@ -407,7 +407,7 @@ class importexport_schedule_ui $data['last_run'] = time(); // Lock job for an hour to prevent multiples overlapping - // $data['lock'] = time() + 3600; + $data['lock'] = time() + 3600; self::update_job($data, true); // check file