logging, new unique ID and improve start case
This commit is contained in:
@@ -2163,10 +2163,11 @@ class Cases
|
||||
$event = new Event();
|
||||
$event->createAppEvents($proUid, $appUid, $delIndex, $tasUid);
|
||||
|
||||
//todo: remove Solr
|
||||
// Update solr
|
||||
if ($this->appSolr != null) {
|
||||
$this->appSolr->updateApplicationSearchIndex($appUid);
|
||||
}
|
||||
//if ($this->appSolr != null) {
|
||||
// $this->appSolr->updateApplicationSearchIndex($appUid);
|
||||
//}
|
||||
|
||||
$fields['TAS_UID'] = $tasUid;
|
||||
$fields['USR_UID'] = $usrUid;
|
||||
@@ -2197,7 +2198,7 @@ class Cases
|
||||
|
||||
// Log
|
||||
$message = 'Create case';
|
||||
$context = $data = [
|
||||
$context = [
|
||||
"appUid" => $appUid,
|
||||
"usrUid" => $usrUid,
|
||||
"tasUid" => $tasUid,
|
||||
@@ -2207,14 +2208,17 @@ class Cases
|
||||
"appInitDate" => $fields['APP_INIT_DATE']
|
||||
];
|
||||
Log::channel(':CreateCase')->info($message, Bootstrap::context($context));
|
||||
|
||||
// Call plugin
|
||||
if (class_exists('folderData')) {
|
||||
$folderData = new folderData($proUid, $proFields['PRO_TITLE'], $appUid, '', $usrUid);
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry->executeTriggers(PM_CREATE_CASE, $folderData);
|
||||
}
|
||||
$this->getExecuteTriggerProcess($appUid, 'CREATE', false);
|
||||
//end plugin
|
||||
|
||||
//Exceute trigger if any configured for this create case
|
||||
$this->getExecuteTriggerProcess($appUid, 'CREATE', false);
|
||||
return [
|
||||
'APPLICATION' => $appUid,
|
||||
'INDEX' => $delIndex,
|
||||
|
||||
Reference in New Issue
Block a user