Merged in cochalo/processmaker/PM-2282 (pull request #1914)
PM-2282 PM-2267: Adicion de validaciones para Action by email
This commit is contained in:
@@ -384,6 +384,7 @@ class Task
|
||||
|
||||
$result = $task->update($arrayProperty);
|
||||
if (!empty($arrayProperty['CONSOLIDATE_DATA'])) {
|
||||
if (isset($arrayProperty['CONSOLIDATE_DATA']['consolidated_dynaform'])) {
|
||||
G::LoadClass("consolidatedCases");
|
||||
$consolidated = new \ConsolidatedCases();
|
||||
$dataConso = array(
|
||||
@@ -397,6 +398,7 @@ class Task
|
||||
);
|
||||
$consolidated->saveConsolidated($dataConso);
|
||||
}
|
||||
}
|
||||
$arrayResult["status"] = "OK";
|
||||
|
||||
if ($result == 3) {
|
||||
|
||||
@@ -123,9 +123,11 @@ class Activity extends Api
|
||||
if (\PMLicensedFeatures
|
||||
::getSingleton()
|
||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
||||
if (isset($request_data['properties']['_features'])) {
|
||||
$actionsByEmailService = new \ProcessMaker\BusinessModel\ActionsByEmail();
|
||||
$actionsByEmailService->saveConfiguration($request_data['properties']['_features']);
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
} catch (\Exception $e) {
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user