Use $_POST for some cases where params is not equal to submit values

This commit is contained in:
CiviWare Solutions 2018-10-11 03:10:40 +05:30
parent d80bd71993
commit 8e68436afd

View File

@ -89,6 +89,9 @@ class CRM_EntityTemplates_Utils {
* @param array $params
*/
public static function addTemplate($objectName, $params) {
if (empty($params['entity_template'])) {
$params = $_POST;
}
if (CRM_Utils_Array::value('entity_template', $params) == $objectName) {
$id = NULL;
if (!empty($params['entity_template_id'])) {