Merged in bugfix/HOR-4579 (pull request #6479)

HOR-4579

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly
2018-05-23 13:27:48 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -707,7 +707,8 @@ class PmDynaform
if ($value[0] === $json->variable) {
continue;
}
$jsonSearch = $this->jsonsf(G::json_decode($this->record["DYN_CONTENT"]), $value[0], $json->variable === "" ? "id" : "variable");
$jsonDecode = G::json_decode($this->record["DYN_CONTENT"]);
$jsonSearch = $this->jsonsf($jsonDecode, $value[0], $json->variable === "" ? "id" : "variable");
$a = $this->getValuesDependentFields($jsonSearch);
foreach ($a as $i => $v) {
$data[$i] = $v;