PM-721 Despliega un warning al querer importar / copiar un dynaform de otro proceso SOLVED
This commit is contained in:
@@ -197,8 +197,9 @@ $r = 0;
|
|||||||
//Set data
|
//Set data
|
||||||
foreach ($dependentFields as $d) {
|
foreach ($dependentFields as $d) {
|
||||||
$d = trim($d);
|
$d = trim($d);
|
||||||
|
$sendContent[$r] = new stdclass();
|
||||||
$sendContent[$r]->name = $d;
|
$sendContent[$r]->name = $d;
|
||||||
$sendContent[$r]->content = null;
|
$sendContent[$r]->content = new stdclass();
|
||||||
|
|
||||||
if (! isset( $_POST['grid'] )) {
|
if (! isset( $_POST['grid'] )) {
|
||||||
if (isset( $G_FORM->fields[$d] )) {
|
if (isset( $G_FORM->fields[$d] )) {
|
||||||
@@ -241,7 +242,7 @@ function toJSArray ($array, $type = '')
|
|||||||
{
|
{
|
||||||
$result = array ();
|
$result = array ();
|
||||||
foreach ($array as $k => $v) {
|
foreach ($array as $k => $v) {
|
||||||
$o = NULL;
|
$o = new stdclass();
|
||||||
$o->key = $k;
|
$o->key = $k;
|
||||||
// TODO: review the condition to make the differentiation to dependent dropdowns in a grid function.
|
// 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
|
// this way of validation is if you have a dependent field in text fields
|
||||||
|
|||||||
Reference in New Issue
Block a user