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);
|
$result = $task->update($arrayProperty);
|
||||||
if (!empty($arrayProperty['CONSOLIDATE_DATA'])) {
|
if (!empty($arrayProperty['CONSOLIDATE_DATA'])) {
|
||||||
|
if (isset($arrayProperty['CONSOLIDATE_DATA']['consolidated_dynaform'])) {
|
||||||
G::LoadClass("consolidatedCases");
|
G::LoadClass("consolidatedCases");
|
||||||
$consolidated = new \ConsolidatedCases();
|
$consolidated = new \ConsolidatedCases();
|
||||||
$dataConso = array(
|
$dataConso = array(
|
||||||
@@ -397,6 +398,7 @@ class Task
|
|||||||
);
|
);
|
||||||
$consolidated->saveConsolidated($dataConso);
|
$consolidated->saveConsolidated($dataConso);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$arrayResult["status"] = "OK";
|
$arrayResult["status"] = "OK";
|
||||||
|
|
||||||
if ($result == 3) {
|
if ($result == 3) {
|
||||||
|
|||||||
@@ -123,9 +123,11 @@ class Activity extends Api
|
|||||||
if (\PMLicensedFeatures
|
if (\PMLicensedFeatures
|
||||||
::getSingleton()
|
::getSingleton()
|
||||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
||||||
|
if (isset($request_data['properties']['_features'])) {
|
||||||
$actionsByEmailService = new \ProcessMaker\BusinessModel\ActionsByEmail();
|
$actionsByEmailService = new \ProcessMaker\BusinessModel\ActionsByEmail();
|
||||||
$actionsByEmailService->saveConfiguration($request_data['properties']['_features']);
|
$actionsByEmailService->saveConfiguration($request_data['properties']['_features']);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user