BUG-15666 Dynaform data is not correctly stored/display in dynaforms APP_DATA. SOLVED.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2014-09-11 11:34:44 -04:00
parent 99415e5b6d
commit 0d187ca304
3 changed files with 13 additions and 10 deletions

View File

@@ -51,13 +51,15 @@ class pmDynaform
$dr = $dt[$i];
$n2 = count($dr);
for ($j = 0; $j < $n2; $j++) {
if ($dr[$j]->name) {
if (isset($dr[$j]->name)) {
$valueField = isset($this->app_data[$dr[$j]->name]) ? $this->app_data[$dr[$j]->name] : "";
$dataJSON->items[0]->items[$i][$j]->defaultValue = $valueField;
}
}
}
return G::json_encode($dataJSON);
$a = G::json_encode($dataJSON);
$a = str_replace("\/", "/", $a);
return $a;
}
public function mergeValues()