Skip to content

Commit 5cfe055

Browse files
committed
Make DraftVaccinationRecord#performed_at_time optional
This is causing an issue in the already vaccinated flow. It should not be necessary to enter a time, only a date to specify when a previous vaccination was performed. Jira-Issue: MAV-2848
1 parent 5ea0878 commit 5cfe055

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

app/models/draft_vaccination_record.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ def wizard_steps
8686

8787
on_wizard_step :date_and_time, exact: true do
8888
validates :performed_at_date, presence: true
89-
validates :performed_at_time,
90-
presence: true,
91-
unless: :national_reporting_user_and_record?
9289
validate :performed_at_date_within_range
9390
end
9491

spec/features/mmr_already_had_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ def when_i_fill_in_the_date_and_continue
212212
fill_in "Day", with: @vaccination_date.day
213213
fill_in "Month", with: @vaccination_date.month
214214
fill_in "Year", with: @vaccination_date.year
215-
fill_in "Hour", with: "12"
216-
fill_in "Minute", with: "00"
217215
click_on "Continue"
218216
end
219217

0 commit comments

Comments
 (0)