PM-4094
This commit is contained in:
@@ -752,6 +752,11 @@ function NewCase ($params)
|
|||||||
$variables = $params->variables;
|
$variables = $params->variables;
|
||||||
|
|
||||||
$field = array ();
|
$field = array ();
|
||||||
|
|
||||||
|
if ($variables->name === "__POST_VARIABLES__") {
|
||||||
|
$field = G::json_decode($variables->value, true);
|
||||||
|
$variables = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_object( $variables )) {
|
if (is_object( $variables )) {
|
||||||
$field[$variables->name] = $variables->value;
|
$field[$variables->name] = $variables->value;
|
||||||
|
|||||||
@@ -44,7 +44,10 @@ try {
|
|||||||
|
|
||||||
ws_open();
|
ws_open();
|
||||||
if ($swpmdynaform) {
|
if ($swpmdynaform) {
|
||||||
$result = ws_newCase("{processUid}", "{taskUid}", convertFormToWSObjects($pmdynaform));
|
$obj = new stdClass();
|
||||||
|
$obj->name = "__POST_VARIABLES__";
|
||||||
|
$obj->value = G::json_encode($pmdynaform);
|
||||||
|
$result = ws_newCase("{processUid}", "{taskUid}", array($obj));
|
||||||
} else {
|
} else {
|
||||||
$result = ws_newCase("{processUid}", "{taskUid}", convertFormToWSObjects($_POST["form"]));
|
$result = ws_newCase("{processUid}", "{taskUid}", convertFormToWSObjects($_POST["form"]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user