Missing contact validation in mount wizzard
Summary
Currently we can insert data for the mount wizzard. The default for the begin contact is the contact entry of the current user. However we can remove that entry. Then the field is marked as red (contact is required), but it doesn't stop us from going to the next steps in the wizzard. And not even on the submit stage we validate the contact entry.
Steps to reproduce
- empty db
- create a device
- create a configuration
- go to the mount wizzard
- set the begin time & continue
- select the configuration in the tree & continue
- remove the begin contact entry, ignore the red marker & continue
- click on submit
What is the current bug behavior?
- The forntend sends the post request to the backend before validating its input begin contacts
What is the expected correct behavior?
- the step when the begin contact is missing we should force the user to select one before it is possible to go on to the submit form.
Some logs and/or screenshots
Possible fixes
Add some more validation. Best in the stage to insert the mount information with the contact field.
ToDo's
-
Bug reproduced -
Cause found -
Bug fixed