Use $_POST for some cases where params is not equal to submit values
This commit is contained in:
parent
d80bd71993
commit
8e68436afd
@ -89,6 +89,9 @@ class CRM_EntityTemplates_Utils {
|
|||||||
* @param array $params
|
* @param array $params
|
||||||
*/
|
*/
|
||||||
public static function addTemplate($objectName, $params) {
|
public static function addTemplate($objectName, $params) {
|
||||||
|
if (empty($params['entity_template'])) {
|
||||||
|
$params = $_POST;
|
||||||
|
}
|
||||||
if (CRM_Utils_Array::value('entity_template', $params) == $objectName) {
|
if (CRM_Utils_Array::value('entity_template', $params) == $objectName) {
|
||||||
$id = NULL;
|
$id = NULL;
|
||||||
if (!empty($params['entity_template_id'])) {
|
if (!empty($params['entity_template_id'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user