fix for : form rule validation notifications not shown
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 26 Mar 2014 08:50:02 +0000 (14:20 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 26 Mar 2014 08:50:02 +0000 (14:20 +0530)
templates/CRM/Form/body.tpl

index 927feb22d8172d30549193c8c91052081f2d7145..2ed29d54256110f9917dae351d4967a20e80fa10 100644 (file)
@@ -33,7 +33,7 @@
   <div>{$form.hidden}</div>
 {/if}
 
-{if $snippet neq 'json' and !$suppressForm and count($form.errors) gt 0}
+{if ($snippet eq 0 or $snippet neq 'json') and !$suppressForm and count($form.errors) gt 0}
    <div class="messages crm-error">
        <div class="icon red-icon alert-icon"></div>
      {ts}Please correct the following errors in the form fields below:{/ts}