Merged in revert-pr-7298 (pull request #7317)

Revert "PMCORE-1129 (pull request #7298)"

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2020-04-16 14:32:19 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -1741,7 +1741,8 @@ class PmDynaform
return false; return false;
} }
foreach ($result as $row) { foreach ($result as $row) {
$json = G::json_decode($row->DYN_CONTENT); $dynaform = new PmDynaform(["CURRENT_DYNAFORM" => $row->DYN_UID]);
$json = G::json_decode($dynaform->record["DYN_CONTENT"]);
if ($this->jsoni($json, $variable)) { if ($this->jsoni($json, $variable)) {
return $row->DYN_UID; return $row->DYN_UID;
} }