[Zendesk 4018]- Grid is not able to delete data when populated by trigger
This commit is contained in:
dheeyi william
2017-01-20 14:40:55 -04:00
parent 3563773094
commit 30b23873f3

View File

@@ -1909,6 +1909,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"]);