app/models/apidae/apidae_data_parser.rb in apidae-1.2.31 vs app/models/apidae/apidae_data_parser.rb in apidae-1.2.32
- old
+ new
@@ -212,10 +212,10 @@
end
def self.parse_location_data(location_hash, type_data_hash, territories)
loc_data = {}
unless location_hash.blank?
- address_hash = location_hash[:adresse]
+ address_hash = location_hash[:adresse] || {}
computed_address = []
unless address_hash.blank?
computed_address << address_hash[:adresse1]
computed_address << address_hash[:adresse2]
computed_address << address_hash[:adresse3]
\ No newline at end of file