PMCORE-2491
This commit is contained in:
@@ -3201,16 +3201,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 . "'.");
|
||||||
}
|
}
|
||||||
@@ -3252,6 +3252,7 @@ function PMFDynaFormFields($dynUid, $appUid = false, $delIndex = 0)
|
|||||||
$fields[] = $value;
|
$fields[] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user