From 81403db8d45ade9d78649f58c0b097b0ad7af5f1 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Mon, 20 Oct 2014 16:24:05 -0400 Subject: [PATCH] PM-721 Despliega un warning al querer importar / copiar un dynaform de otro proceso SOLVED --- gulliver/methods/defaultAjax.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gulliver/methods/defaultAjax.php b/gulliver/methods/defaultAjax.php index 90d569cb7..e45ef59ba 100755 --- a/gulliver/methods/defaultAjax.php +++ b/gulliver/methods/defaultAjax.php @@ -197,8 +197,9 @@ $r = 0; //Set data foreach ($dependentFields as $d) { $d = trim($d); + $sendContent[$r] = new stdclass(); $sendContent[$r]->name = $d; - $sendContent[$r]->content = null; + $sendContent[$r]->content = new stdclass(); if (! isset( $_POST['grid'] )) { if (isset( $G_FORM->fields[$d] )) { @@ -241,7 +242,7 @@ function toJSArray ($array, $type = '') { $result = array (); foreach ($array as $k => $v) { - $o = NULL; + $o = new stdclass(); $o->key = $k; // TODO: review the condition to make the differentiation to dependent dropdowns in a grid function. // this way of validation is if you have a dependent field in text fields