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) | $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) | $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.
*
*/
function WSNewCaseImpersonate ($processId, $userId, $name1, $value1, $name2, $value2, $taskId)
function WSNewCaseImpersonate ($processId, $userId, $name1, $value1, $name2, $value2, $taskId = '')
{
$client = WSOpen();
@@ -3205,16 +3205,16 @@ function PMFUnCancelCase($caseUID, $userUID)
* @name PMFDynaFormFields
* @label PMF DynaForm Fields
* @param string | $dynUid | Dynaform ID | Id of the dynaform
* @param string | $appUid | Case ID | Id of the case
* @param int | $delIndex | Delegation index | Delegation index for case
* @param string | $appUid = '' | Case ID | Id of the case
* @param int | $delIndex = 0| Delegation index | Delegation index for case
* @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();
$data = array();
$fields = [];
$data = [];
if ($appUid !== false) {
if (!empty($appUid)) {
if ($delIndex < 0) {
throw new Exception(G::LoadTranslation('ID_INVALID_DELEGATION_INDEX_FOR_CASE') . "'" . $appUid . "'.");
}