Browse Source

ensure that property information subsection is conditionally not shown under correct conditions

pull/1368/head
Arthur Campbell 3 years ago
parent
commit
35f2df5da9
  1. 6
      app/models/form/lettings/subsections/property_information.rb

6
app/models/form/lettings/subsections/property_information.rb

@ -3,7 +3,7 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection
super
@id = "property_information"
@label = "Property information"
@depends_on = [{ "non_location_setup_questions_completed?" => true }]
@depends_on = [{ "non_location_setup_questions_completed?" => true, "supported_housing_and_renewal?" => false }]
end
def pages
@ -27,4 +27,8 @@ class Form::Lettings::Subsections::PropertyInformation < ::Form::Subsection
Form::Lettings::Pages::PropertyMajorRepairsValueCheck.new(nil, nil, self),
].compact
end
def displayed_in_tasklist?(log)
!log.supported_housing_and_renewal?
end
end

Loading…
Cancel
Save