diff --git a/app/models/validations/shared_validations.rb b/app/models/validations/shared_validations.rb index a5734aa11..fb9a85d5f 100644 --- a/app/models/validations/shared_validations.rb +++ b/app/models/validations/shared_validations.rb @@ -88,7 +88,7 @@ module Validations::SharedValidations return if record.startdate.blank? if record.scheme.present? && !record.scheme.any_location_active_on_date?(record.startdate) - record.errors.add :startdate, I18n.t("validations.setup.startdate.scheme.locations_inactive.startdate", name: record.scheme.service_name, date: record.startdate) + record.errors.add :startdate, I18n.t("validations.setup.startdate.scheme.locations_inactive.startdate", name: record.scheme.service_name) end if record.location.present? && !record.location.active_on_date?(record.startdate) record.errors.add :startdate, I18n.t("validations.setup.startdate.location.deactivated.startdate", postcode: record.location.postcode)