Browse Source

feat: make check_collection_period log type specific

pull/2353/head
natdeanlewissoftwire 2 years ago
parent
commit
b1aad20a32
  1. 4
      app/controllers/form_controller.rb

4
app/controllers/form_controller.rb

@ -250,7 +250,9 @@ private
def check_collection_period def check_collection_period
return unless @log return unless @log
redirect_to lettings_log_path(@log) unless @log.collection_period_open_for_editing? unless @log.collection_period_open_for_editing?
redirect_to @log.lettings? ? lettings_log_path(@log) : sales_log_path(@log)
end
end end
CONFIRMATION_PAGE_IDS = %w[uprn_confirmation uprn_selection].freeze CONFIRMATION_PAGE_IDS = %w[uprn_confirmation uprn_selection].freeze

Loading…
Cancel
Save