CRM-13681 : fix for event registration as well as contribution, also consists fixes...
[civicrm-core.git] / CRM / Contribute / BAO / ContributionPage.php
index 83cbb9a1780b4869a37832439d21da0781e8e40a..8a37c39308de41ebb1ee5082159f8f73fa32bef0 100644 (file)
@@ -240,7 +240,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
 
       // get the billing location type
       if (!array_key_exists('related_contact', $values)) {
-        $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');
         $billingLocationTypeId = array_search('Billing', $locationTypes);
       }
       else {