Skip to content
Snippets Groups Projects
Unverified Commit fa62d72c authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #21124 from MegaphoneJon/fix-event-validation

fix crmValidate() not loading on event registration pages
parents e6d317ce d49c7f5e
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@
*}
{* Initialize jQuery validate on a form *}
{* Extra params and functions may be added to the CRM.validate object before this template is loaded *}
{if empty($crm_form_validate_included) and isset($smarty.get.snippet) and $smarty.get.snippet neq 'json' and !empty($form) and !empty($form.formClass)}
{if empty($crm_form_validate_included) and ((isset($smarty.get.snippet) and $smarty.get.snippet neq 'json') or !isset($smarty.get.snippet)) and !empty($form) and !empty($form.formClass)}
{assign var=crm_form_validate_included value=1}
{literal}
<script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment