Skip to content

Commit 8e2d529

Browse files
Change "more" to "less" in ImmImportRow validation errors
This was misleading; the constraint checks that it was "less old than", not "more old than"
1 parent 51bf616 commit 8e2d529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/immunisation_import_row.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def validate_batch_expiry
672672
"must be less than 15 years in the future"
673673
)
674674
elsif date < EARLIEST_BATCH_EXPIRY
675-
errors.add(batch_expiry.header, "must be more than 15 years old")
675+
errors.add(batch_expiry.header, "must be less than 15 years old")
676676
end
677677
else
678678
errors.add(batch_expiry.header, "Enter a date in the correct format.")

0 commit comments

Comments
 (0)