Environment
Discourse Version: 3.1.0.beta2
Plugin Commit: GitHub - paviliondev/discourse-events: Allows you to manage events in Discourse
Steps to Reproduce
- Click the Create a new Topic button.
- Click on the gear icon to reveal more WYSIWYG options.
- Select “Create event”.
- Enter a start date and time greater than the current time.
- Enter an end date equal to the start date.
- Enter an end time of 16:15.
- Manually change the day field in the end date (e.g., from 02/16/2023 to 02/10/2023) to a value before the start date.
- The end time changes from 16:15 to 16:30 (issue #1)
- Enter the remaining required fields.
- Press the Create button.
- The output automatically changes the end date to match the start date without notifying the user (issue #2).
It’s:
[e vent start=“2023-02-16 15:30” status=“public” name=“Joel’s Test Event” timezone=“America/Chicago” end=“2023-02-16 16:30” allowedGroups=“trust_level_0”]
[/e vent]
Versus:
[e vent start=“2023-02-16 15:30” status=“public” name=“Joel’s Test Event” timezone=“America/Chicago” end=“2023-02-10 16:30” allowedGroups=“trust_level_0”]
[/e vent]
- Manually edit the date in the end date code from 2023-02-16 to 2023-02-10.
- The preview in the composer shows an end date before the start date with no visual indicator that something is wrong.
- Press the Create Topic button.
- There is no soft or hard edit notifying the user that the end date is before the start date.
Example
https://forum.test.theputtyverse.com/
This is our test environment which is protected from logged by two layers. We’re not running the Discourse Events plugin in production yet.
Logs
A screencast of the issues can be found here: