AM/PM select list not validated

Created on 7 July 2023, almost 2 years ago
Updated 24 August 2023, over 1 year ago

Problem/Motivation

When a user enters from/to time with the widget set to hour, min and am/pm, if you just add the 'from' time omitting am/pm and try to save, it validates with the field saying Closing hours must be set

If I subsequently add the 'to' time and don't set am/pm the page saves but the entered values are discarded.

Steps to reproduce

As in Problem/Motivation

Proposed resolution

Add validation on am/pm if hour and min set, don't pass validation if time is set without am/pm field populated

Remaining tasks

Write validation code
Write tests
Test
Community review

🐛 Bug report
Status

Fixed

Version

1.11

Component

Code - widget

Created by

🇬🇧United Kingdom darrenwh Bristol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024