Incorrect Start Date and Expiry Date behavior for system notification

Description

While checking OLMIS, I noticed the following:

  1. After removing the Start Date and Expiry Date, the message is created and the dates are entered automatically.

  • Reproduction steps:

  • Go to Administration > System Notification and click the "Add System Notification" button.

  • Fill in all fields, remove Start Date and Expiry Date and click the "Add System Notification".

  • The message is created and fields with dates are filled out.

2. While editing a message, one can't delete Expiry Date (and can't remove Start Date to).

  • Reproduction steps:

  • Go to Administration > System Notification and click the "Edit" button next to any message.

  • Remove Expiry Date and click the "Update System Notification".

  • Click the "Edit" button next to the same message.

  • Field with Expiry Date is still filled in (the same issue occurs with Start Date).

3. Due to the fact that the dates sign up automatically, the message "System notification start date should be before expiryDate." appears when I choose today's date as Expiry Date and then delete it.
And in this message "expiryDate" should be written "Expiry Date".
Please take a look at Expiry Date2.gif

Environment

None

Activity

Show:
Joanna Szymańska
June 27, 2019, 2:17 PM

I was able to reproduce this bug.

Joanna Bebak
July 3, 2019, 8:56 AM

I tested the ticket, and all issues were fixed. I only noticed that when I manually change any number or AM to PM in the "Start Date" or the "End Date" field, I get the following console error:

Is it related to your changes/can it be fixed as a part of this ticket, or should I create a new one?

Paulina Buzderewicz
July 3, 2019, 9:37 AM

This issue is not related to my changes, I think you could create a new one for this.

 

Joanna Bebak
July 3, 2019, 9:38 AM

OK, thanks for clarification! In this case, I'll close this ticket and create a new one for the console error that I found.

Done

Assignee

Paulina Buzderewicz

Reporter

Joanna Szymańska

Labels

Story Points

3

Time tracking

0m

Time remaining

10h 30m

Epic Link

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure