ContributorCovenant / beacon

A code of conduct reporting and management system created by Coraline Ada Ehmke, the author of the Contributor Covenant.
Apache License 2.0
32 stars 10 forks source link

[BUG] Event toggle for new project is out of sync after project creation error #241

Closed DEGoodmanWilson closed 5 years ago

DEGoodmanWilson commented 5 years ago

All contributions, including pull requests, issues, and comments, are governed by our code of conduct.

Description of the bug

Sorry, this one is a bit difficult to describe concisely. I had created a project, and then a second project. The second project was an event, and I attempted to use the same URL as the first project, not realizing that they needed to be globally unique. That's fine, I was notified with an error at the top of the page that I needed to use a unique URL for my second project. But at this point, the event toggle came out of sync, as in the screencap below.

Reproducting the bug

Steps to reproduce the behavior:

  1. Create a Project. Use any settings, I don't think it matters.
  2. Create a second Project, with the following details:
  3. Use the same URL as the first project
  4. Check 'this is an event'
  5. Click 'Create project'
  6. See error: 'this is an event' is checked, but the event details are missing. Unchecking 'this is an event' reveals the event details

Expected behavior

I expected that the 'this is an event' box would be checked, and the event details revealed.

Screenshots

urlalreadytaken

Desktop environment

CoralineAda commented 5 years ago

Fixed, thanks for the report!