province abbreviation patch - issue 724
[civicrm-core.git] / CRM / Import / Parser.php
index f50cff2fd12eb93c9a96d28bd6e6367a92cfb2b4..57c367ef19fd550c24c0e5d50d0c19d2861741ca 100644 (file)
@@ -24,7 +24,7 @@ abstract class CRM_Import_Parser implements UserJobInterface {
   /**
    * Settings
    */
-  const MAX_WARNINGS = 25, DEFAULT_TIMEOUT = 30;
+  const MAX_ERRORS = 10000, MAX_WARNINGS = 25, DEFAULT_TIMEOUT = 30;
 
   /**
    * Return codes
@@ -1301,7 +1301,7 @@ abstract class CRM_Import_Parser implements UserJobInterface {
       }
       else {
         foreach ($required as $field => $label) {
-          if (empty($params[$field])) {
+          if (!isset($params[$field]) || $params[$field] === '') {
             $missing[$field] = $label;
           }
         }