Skip to content
Snippets Groups Projects
Verified Commit 8c05b8e3 authored by Damien's avatar Damien
Browse files

FIX #12070 TIME 0:05 Fix control chrono

parent ff8151a0
No related branches found
No related tags found
No related merge requests found
......@@ -121,10 +121,6 @@ class StoreController
$args['typist'] = $GLOBALS['id'];
}
$chrono = null;
if (!empty($args['chrono'])) {
$chrono = ChronoModel::getChrono(['id' => $indexingModel['category'], 'entityId' => $args['destination'], 'typeId' => $args['doctype'], 'resId' => $args['resId']]);
}
if (!empty($args['initiator'])) {
$entity = EntityModel::getById(['id' => $args['initiator'], 'select' => ['entity_id']]);
......@@ -134,6 +130,10 @@ class StoreController
$entity = EntityModel::getById(['id' => $args['destination'], 'select' => ['entity_id']]);
$args['destination'] = $entity['entity_id'];
}
$chrono = null;
if (!empty($args['chrono'])) {
$chrono = ChronoModel::getChrono(['id' => $indexingModel['category'], 'entityId' => $args['destination'], 'typeId' => $args['doctype'], 'resId' => $args['resId']]);
}
if (!empty($args['processLimitDate']) && !empty($args['priority'])) {
$args['priority'] = IndexingController::calculatePriorityWithProcessLimitDate(['processLimitDate' => $args['processLimitDate']]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment