|
|
@ -148,7 +148,7 @@ module Imports |
|
|
|
attributes["old_id"] = field_value(xml_doc, "meta", "document-id") |
|
|
|
attributes["old_id"] = field_value(xml_doc, "meta", "document-id") |
|
|
|
|
|
|
|
|
|
|
|
# Required for our form invalidated questions (not present in import) |
|
|
|
# Required for our form invalidated questions (not present in import) |
|
|
|
attributes["previous_la_known"] = attributes["prevloc"].nil? ? nil : 1 # 0 (No) is not selectable in OLD Core |
|
|
|
attributes["previous_la_known"] = attributes["prevloc"].nil? ? 0 : 1 |
|
|
|
attributes["is_la_inferred"] = false # Always keep the given LA |
|
|
|
attributes["is_la_inferred"] = false # Always keep the given LA |
|
|
|
attributes["first_time_property_let_as_social_housing"] = first_time_let(attributes["rsnvac"]) |
|
|
|
attributes["first_time_property_let_as_social_housing"] = first_time_let(attributes["rsnvac"]) |
|
|
|
attributes["declaration"] = declaration(xml_doc) |
|
|
|
attributes["declaration"] = declaration(xml_doc) |
|
|
|