From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- server/lib/cimi/models/address_template.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/server/lib/cimi/models/address_template.rb b/server/lib/cimi/models/address_template.rb index c1623e2..c8a4de6 100644 --- a/server/lib/cimi/models/address_template.rb +++ b/server/lib/cimi/models/address_template.rb @@ -84,6 +84,7 @@ class CIMI::Model::AddressTemplate < CIMI::Model::Base def self.create_from_xml(body, context) xml = XmlSimple.xml_in(body) + xml['property'] ||= [] new_template = current_db.address_templates.new( :name => xml['name'].first, :description => xml['description'].first, -- 1.8.0.2
