Signalen / frontend

Frontend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
10 stars 4 forks source link

User can be chosen without assigned department #119

Closed someren closed 2 years ago

someren commented 3 years ago

Describe the bug Currently, it is possible to assign a signal/ticket to a user (e-mailadres) without an assigned department. The correct order is to first select the correct categorie, secondly the department and thirdly the user. However, step 2 can be skipped and should be mandatory before selecting a user. As a result many filters do not work correctly since a signal/ticket is assigned to an employee but not assigned to a department.

To Reproduce Steps to reproduce the behavior:

  1. Open a signal/ticket
  2. Click on the pencil to change the categorie (one with multiple departments)
  3. Skip the department and click on the pencil next to "Toegewezen aan" to select a user.
  4. Click on "Opslaan" The signal/ticket has been saved without an assigned department.

Expected behavior The pencil behind "Toegewezen aan" should be grayed out/unavailable until a department is selected. Or, an error is expected that there should be a department assigned before you can assign a ticket/signal to a user.

Screenshots

Afdeling niet gekoppeld

Desktop (please complete the following information):