Merge branch 'CRM-14300' of github.com:monishdeb/civicrm-core into CRM-14300
[civicrm-core.git] / templates / CRM / Form / body.tpl
index 2221e69457a19080e11e21fcb68e58be30386b67..fab02484997aafb739b6a4a3e0426adc096d722b 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -33,7 +33,7 @@
   <div>{$form.hidden}</div>
 {/if}
 
-{if $suppressForm and count($form.errors) gt 0}
+{if $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}