While checking OLMIS, I noticed the following:
After removing the Start Date and Expiry Date, the message is created and the dates are entered automatically.
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).
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
I was able to reproduce this bug.
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?
This issue is not related to my changes, I think you could create a new one for this.
OK, thanks for clarification! In this case, I'll close this ticket and create a new one for the console error that I found.