-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 4.20.16, 5.7.0
-
Component/s: Assets - Object, Type and Schema
-
None
-
1
-
Severity 3 - Minor
-
0
Issue Summary
Entering "hhh" as a time format in Look and Feel can cause a display error where setting an invalid time and then date can cause the screen to go blank when editing an Assets object's attributes.
This is reproducible on Data Center: yes
Steps to Reproduce
- Change the time format under the Date/Time Formats section of the JIRA Look and Feel page to use "hhh" (ex: "hh:mm")
- Open an Assets object with a DateTime attribute and click "Edit".
- Find a DateTime attribute and enter an invalid value for the Time (ex: 25:25, will be displayed as 10hh:15)
- Click on the Calendar icon for the Date and select a Date
Expected Results
Jira should update the field to show the date selected and allow editing to continue.
Actual Results
Jira stops displaying the Edit screen for the Assets object and goes to a completely blank screen
An error like below is thrown in the browser console log:
batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045 TypeError: Cannot read properties of null (reading 'start')
at n.componentDidUpdate (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:4151816)
at cs (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:709022)
at kl (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:726565)
at t.unstable_runWithPriority (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:752010)
at Gi (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:670643)
at wl (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:723231)
at sl (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:719385)
at batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:670934
at t.unstable_runWithPriority (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:752010)
at Gi (batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045:670643)
is @ batch.js?_v=119357b&baseurl-check-resources=true&healthcheck-resources=true&locale=en-US:64045
Workaround
Use "h" or another display format instead of "hhh"