PMCORE-2736

This commit is contained in:
Julio Cesar Laura Avendaño
2021-01-19 19:54:07 +00:00
parent c48d7a6c16
commit 40e9c679bd
5 changed files with 62 additions and 11 deletions

View File

@@ -61,7 +61,13 @@ if ($featureEnable) {
$cases = new Cases();
$cases->routeCaseActionByEmail($appUid, $delIndex, $aber, $dynUid, $forms, $remoteAddr, $files);
};
JobsManager::getSingleton()->dispatch(ActionByEmail::class, $closure);
if (!DISABLE_TASK_MANAGER_ROUTING_ASYNC) {
// Routing the case asynchronically
JobsManager::getSingleton()->dispatch(ActionByEmail::class, $closure);
} else {
// Routing the case synchronically
$closure();
}
$message = [];
$message['MESSAGE'] = '<strong>' . G::loadTranslation('ID_ABE_INFORMATION_SUBMITTED') . '</strong>';