From ac2220d73c05ea6dbdc09f99378fb149317d8a1c Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Tue, 22 May 2018 14:35:33 -0400 Subject: [PATCH] HOR-4579 --- workflow/engine/classes/PmDynaform.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/classes/PmDynaform.php b/workflow/engine/classes/PmDynaform.php index 1f99ab173..438cf2a37 100644 --- a/workflow/engine/classes/PmDynaform.php +++ b/workflow/engine/classes/PmDynaform.php @@ -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;