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']);
|
||||
|
||||
@@ -169,9 +169,14 @@ class AppNotes extends BaseAppNotes
|
||||
$configuration['MESS_ENGINE'] = '';
|
||||
}
|
||||
|
||||
$users = new Users();
|
||||
$userInfo = $users->load($usrUid);
|
||||
$authorName = ((($userInfo['USR_FIRSTNAME'] != '') || ($userInfo['USR_LASTNAME'] != '')) ? $userInfo['USR_FIRSTNAME'] . ' ' . $userInfo['USR_LASTNAME'] . ' ' : '') . '<' . $userInfo['USR_EMAIL'] . '>';
|
||||
//This value can be empty when the previous task is: 'Script Task', 'Timer Event' or other without user.
|
||||
if (!empty($usrUid)) {
|
||||
$users = new Users();
|
||||
$userInfo = $users->load($usrUid);
|
||||
$authorName = ((($userInfo['USR_FIRSTNAME'] != '') || ($userInfo['USR_LASTNAME'] != '')) ? $userInfo['USR_FIRSTNAME'] . ' ' . $userInfo['USR_LASTNAME'] . ' ' : '') . '<' . $userInfo['USR_EMAIL'] . '>';
|
||||
} else {
|
||||
$authorName = G::LoadTranslation('UID_UNDEFINED_USER');
|
||||
}
|
||||
|
||||
$cases = new Cases();
|
||||
$fieldCase = $cases->loadCase($appUid, $delIndex);
|
||||
|
||||
Reference in New Issue
Block a user