Skip to content

Commit

Permalink
Merge pull request #21124 from MegaphoneJon/fix-event-validation
Browse files Browse the repository at this point in the history
fix crmValidate() not loading on event registration pages
  • Loading branch information
eileenmcnaughton authored Aug 13, 2021
2 parents e6d317c + d49c7f5 commit fa62d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/CRM/Form/validate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit fa62d72

Please sign in to comment.