mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
* Importexport: Fix scheduled jobs did not always update while in progress.
Long IDs would get truncated by the database and were not properly updated
This commit is contained in:
parent
da8e191f96
commit
27816c1f91
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user