removed snippet check
This commit is contained in:
parent
7b97bd7839
commit
ae7237f49b
@ -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;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
$('#entity_template_id').change(function() {
|
||||
window.location.href = '{/literal}{$redirectUrl}{literal}&templateId=' + $(this).val();
|
||||
});
|
||||
window.onbeforeunload = function() {};
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
Loading…
Reference in New Issue
Block a user