PMCORE-2491

This commit is contained in:
Paula Quispe
2022-02-01 14:49:28 -04:00
parent 4bd544b07a
commit b6e2748d9e

View File

@@ -1159,11 +1159,11 @@ function WSDerivateCase ($caseId, $delIndex)
* @param string(32) | $value1 | Value of the first variable | The value of the first variable to be sent to the created case. * @param string(32) | $value1 | Value of the first variable | The value of the first variable to be sent to the created case.
* @param string(32) | $name2 | Name of the second variable | The name of the second variable to be sent to the created case. * @param string(32) | $name2 | Name of the second variable | The name of the second variable to be sent to the created case.
* @param string(32) | $value2 | Value of the second variable | The value of the second variable to be sent to the created case. * @param string(32) | $value2 | Value of the second variable | The value of the second variable to be sent to the created case.
* @param string(32) | $taskId | Task ID | The unique ID for the task * @param string(32) | $taskId = '' | Task ID | The unique ID for the task
* @return array | $fields | WS Response Associative Array | A WS Response associative array. * @return array | $fields | WS Response Associative Array | A WS Response associative array.
* *
*/ */
function WSNewCaseImpersonate ($processId, $userId, $name1, $value1, $name2, $value2, $taskId) function WSNewCaseImpersonate ($processId, $userId, $name1, $value1, $name2, $value2, $taskId = '')
{ {
$client = WSOpen(); $client = WSOpen();
@@ -3205,16 +3205,16 @@ function PMFUnCancelCase($caseUID, $userUID)
* @name PMFDynaFormFields * @name PMFDynaFormFields
* @label PMF DynaForm Fields * @label PMF DynaForm Fields
* @param string | $dynUid | Dynaform ID | Id of the dynaform * @param string | $dynUid | Dynaform ID | Id of the dynaform
* @param string | $appUid | Case ID | Id of the case * @param string | $appUid = '' | Case ID | Id of the case
* @param int | $delIndex | Delegation index | Delegation index for case * @param int | $delIndex = 0| Delegation index | Delegation index for case
* @return array | $fields | List of fields | Return a list of fields * @return array | $fields | List of fields | Return a list of fields
*/ */
function PMFDynaFormFields($dynUid, $appUid = false, $delIndex = 0) function PMFDynaFormFields($dynUid, $appUid = '', $delIndex = 0)
{ {
$fields = array(); $fields = [];
$data = array(); $data = [];
if ($appUid !== false) { if (!empty($appUid)) {
if ($delIndex < 0) { if ($delIndex < 0) {
throw new Exception(G::LoadTranslation('ID_INVALID_DELEGATION_INDEX_FOR_CASE') . "'" . $appUid . "'."); throw new Exception(G::LoadTranslation('ID_INVALID_DELEGATION_INDEX_FOR_CASE') . "'" . $appUid . "'.");
} }