PMC-507
This commit is contained in:
@@ -50,6 +50,17 @@ class AbeConfiguration extends BaseAbeConfiguration
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create or update.
|
||||
*
|
||||
* @param array $data
|
||||
* @throws Exception
|
||||
*
|
||||
* @see Processes->createActionsByEmail()
|
||||
* @see ProcessMaker\BusinessModel\ActionsByEmail->saveConfiguration()
|
||||
* @see ProcessMaker\BusinessModel\ActionsByEmail->saveConfiguration2()
|
||||
* @link https://wiki.processmaker.com/3.3/Actions_by_Email#Configuration
|
||||
*/
|
||||
public function createOrUpdate($data)
|
||||
{
|
||||
foreach ($data as $field => $value) {
|
||||
@@ -72,6 +83,11 @@ class AbeConfiguration extends BaseAbeConfiguration
|
||||
} else {
|
||||
$abeConfigurationInstance = AbeConfigurationPeer::retrieveByPK($data['ABE_UID']);
|
||||
}
|
||||
//Only the 'FIELD' and 'LINK' types have a DYN_UID,
|
||||
//the DYN_UID field is empty when the type is 'CUSTOM'.
|
||||
if ($data['ABE_TYPE'] === 'CUSTOM') {
|
||||
$data['DYN_UID'] = '';
|
||||
}
|
||||
|
||||
if (isset($data['ABE_CUSTOM_GRID'])) {
|
||||
$data['ABE_CUSTOM_GRID'] = serialize($data['ABE_CUSTOM_GRID']);
|
||||
|
||||
Reference in New Issue
Block a user