CRM-14181, remove special handing for enums
[civicrm-core.git] / api / v3 / utils.php
index 96bef98ca8bd6a61416b27a17b0e015ff81f780d..c5ad6c32b9e659899129134c4ff516c095802cce 100644 (file)
@@ -1680,7 +1680,7 @@ function _civicrm_api3_validate_string(&$params, &$fieldName, &$fieldInfo, $enti
         throw new Exception("Currency not a valid code: $value");
       }
     }
-    if (!empty($fieldInfo['pseudoconstant']) || !empty($fieldInfo['options']) || !empty($fieldInfo['enumValues'])) {
+    if (!empty($fieldInfo['pseudoconstant']) || !empty($fieldInfo['options'])) {
       _civicrm_api3_api_match_pseudoconstant($params, $entity, $fieldName, $fieldInfo);
     }
     // Check our field length