mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +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());
|
$definition_list = ((array)$definitions->get_definitions());
|
||||||
|
|
||||||
$id = 'importexport.'.$definition_list[0].'.'.$data['target'];
|
$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();
|
$data['last_run'] = time();
|
||||||
|
|
||||||
// Lock job for an hour to prevent multiples overlapping
|
// Lock job for an hour to prevent multiples overlapping
|
||||||
// $data['lock'] = time() + 3600;
|
$data['lock'] = time() + 3600;
|
||||||
self::update_job($data, true);
|
self::update_job($data, true);
|
||||||
|
|
||||||
// check file
|
// check file
|
||||||
|
Loading…
Reference in New Issue
Block a user