Merged in bugfix/HOR-2462 (pull request #5359)

HOR-2462

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Julio Cesar Laura Avendaño
2017-02-06 19:37:08 +00:00

View File

@@ -1913,6 +1913,12 @@ class pmDynaform
if ($validatorClass !== null) {
$validatorClass->validatePost($post);
}
//Clears the data in the appData for grids
if (array_key_exists($json->id, $this->fields) && $json->type === 'grid' &&
!array_key_exists($json->id, $post)
) {
$post[$json->variable] = array(array());
}
}
};
$json = G::json_decode($this->record["DYN_CONTENT"]);