diff --git a/app/helpers/log_actions_helper.rb b/app/helpers/log_actions_helper.rb index e1be41a0a..644d4a9c6 100644 --- a/app/helpers/log_actions_helper.rb +++ b/app/helpers/log_actions_helper.rb @@ -22,16 +22,16 @@ module LogActionsHelper def create_lettings_log_for_org_button(org) # This doesn't work because it's a get request and can't old params like that - if FeatureToggle.not_started_status_removed? - govuk_button_link_to( - "Create a new lettings log for this organisation", - lettings_log_path(id: "new", lettings_log: { owning_organisation_id: org.id }), - ) - else + # if FeatureToggle.not_started_status_removed? + # govuk_button_link_to( + # "Create a new lettings log for this organisation", + # lettings_log_path(id: "new", lettings_log: { owning_organisation_id: org.id }), + # ) + # else govuk_button_to( "Create a new lettings log for this organisation", lettings_logs_path(lettings_log: { owning_organisation_id: org.id }, method: :post) ) - end + # end end def create_sales_log_button diff --git a/app/models/log.rb b/app/models/log.rb index d2e7eb890..5ce11228c 100644 --- a/app/models/log.rb +++ b/app/models/log.rb @@ -152,7 +152,7 @@ class Log < ApplicationRecord if all_fields_completed? && errors.empty? "completed" - elsif all_fields_nil? + elsif all_fields_nil? && !FeatureToggle.not_started_status_removed? "not_started" else "in_progress"