Use $_POST for some cases where params is not equal to submit values
This commit is contained in:
		@@ -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'])) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user