PM-721 Despliega un warning al querer importar / copiar un dynaform de otro proceso SOLVED

This commit is contained in:
Julio Cesar Laura
2014-10-20 16:24:05 -04:00
parent c8fa029ec5
commit 81403db8d4

View File

@@ -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