removed snippet check

This commit is contained in:
CiviWare Solutions 2018-08-31 02:57:08 +05:30
parent 7b97bd7839
commit ae7237f49b
2 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,7 @@ class CRM_EntityTemplates_Utils {
* @param object $form
*/
public static function preProcess($formName, &$form) {
if (CRM_Utils_Request::retrieve('snippet', 'String')
|| !($form->getVar('_action') & CRM_Core_Action::ADD)
if (!($form->getVar('_action') & CRM_Core_Action::ADD)
) {
return;
}

View File

@ -20,6 +20,7 @@
$('#entity_template_id').change(function() {
window.location.href = '{/literal}{$redirectUrl}{literal}&templateId=' + $(this).val();
});
window.onbeforeunload = function() {};
});
</script>
{/literal}