Skip to content

Commit

Permalink
Merge pull request #8222 from alphagov/follow-date-validation-message…
Browse files Browse the repository at this point in the history
…-guidance

Modify scheduled publication date validation error message
  • Loading branch information
ryanb-gds authored Sep 8, 2023
2 parents 52d95c0 + 41cf9d5 commit 18e9889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/edition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def scheduled_publication=(date)

def valid_date
if @date_field_validity.present? && @date_field_validity[:scheduled_publication] == false
errors.add(:scheduled_publication, "must be a valid date in the format XX XX XXXX")
errors.add(:scheduled_publication, "must be a valid date in the correct format")
end
end

Expand Down

0 comments on commit 18e9889

Please sign in to comment.