From 23246a80537992a09afb39fd987227a491dcab6b Mon Sep 17 00:00:00 2001
From: kurund <kurund@civicrm.org>
Date: Fri, 2 Aug 2013 17:38:20 +0530
Subject: [PATCH] CRM-13078 fixed race condition and error alert

----------------------------------------
* CRM-13078: Batch Data Entry silently drops 'batch-valid' entries if no contact_id is associated with them
  http://issues.civicrm.org/jira/browse/CRM-13078
---
 js/Common.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js/Common.js b/js/Common.js
index c9f76c912a..e2382e29a7 100644
--- a/js/Common.js
+++ b/js/Common.js
@@ -754,7 +754,9 @@ CRM.validate = CRM.validate || {
     });
     // Handle qf form errors
     $('form :input.error', this).one('blur', function() {
-      $('.ui-notify-message.error a.ui-notify-close').click();
+      if ($(this).is('.ac_input')) {
+        return;
+      }
       $(this).removeClass('error');
       $(this).next('span.crm-error').remove();
       $('label[for="' + $(this).attr('name') + '"], label[for="' + $(this).attr('id') + '"]')
-- 
GitLab