PM-3935
This commit is contained in:
@@ -485,6 +485,9 @@ class pmDynaform
|
||||
|
||||
private function getValuesDependentFields($json)
|
||||
{
|
||||
if (!isset($this->record["DYN_CONTENT"])) {
|
||||
return array();
|
||||
}
|
||||
$data = array();
|
||||
if (isset($json->dbConnection) && isset($json->sql)) {
|
||||
$salida = array();
|
||||
|
||||
@@ -751,11 +751,11 @@ class Light extends Api
|
||||
$dynaForm = new \ProcessMaker\BusinessModel\DynaForm();
|
||||
$dynaForm->setFormatFieldNameInUppercase(false);
|
||||
\G::LoadClass("pmDynaform");
|
||||
$pmDynaForm = new \pmDynaform();
|
||||
$_SESSION['PROCESS'] = $prj_uid;
|
||||
$return = array();
|
||||
foreach ($request_data['formId'] as $dyn_uid) {
|
||||
$response = $dynaForm->getDynaForm($dyn_uid);
|
||||
$pmDynaForm = new \pmDynaform(array("CURRENT_DYNAFORM" => $dyn_uid));
|
||||
$result = $this->parserDataDynaForm($response);
|
||||
$result['formContent'] = (isset($result['formContent']) && $result['formContent'] != null)?json_decode($result['formContent']):"";
|
||||
$pmDynaForm->jsonr($result['formContent']);
|
||||
|
||||
Reference in New Issue
Block a user