CRM-13681 : fix for event registration as well as contribution, also consists fixes...
[civicrm-core.git] / CRM / Core / BAO / LocationType.php
index f289b2056ad6d0adb7a69241c90c58bad808364d..1ba5e1084045d149d837870561bf4b3320c213b0 100644 (file)
@@ -111,7 +111,7 @@ class CRM_Core_BAO_LocationType extends CRM_Core_DAO_LocationType {
    */
   static function getBilling() {
     if (self::$_billingLocationType == NULL) {
-      $locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id');
+      $locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id', array(), 'validate');
       self::$_billingLocationType = array_search('Billing', $locationTypes);
     }
     return self::$_billingLocationType;