Content
View differences
Updated by Attila Dombi almost 3 years ago
### Note
Since angular's `ng-select` does not support the `required` attribute we skip on that one.
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Go to the global new meetings form
2. Submit the form without completing anything
3. An inline "Please fill out this field." message appears under the Title.
4. ~~Complete Complete the Title and leave the Project empty.~~ empty.
5. ~~Now Now the form is being reloaded and we are greeted with an error toast stating the "Project can't be blank."~~ blank."
6. Complete the Project field too and remove the Start Date date section.
7. The form is being reloaded again we receive the error toast stating the "Start date is not a valid date."
### What is the buggy behavior?
* The error toast is being shown in the steps 5 & 7.
### What is the expected behavior?
* In steps 5 and 7 we should receive an inline "Please fill out this field" message instead of submitting the page and displaying the error toast.
### Screenshots and other files
Correct:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257792601-2e8d6fcb-ba2d-4442-b59b-a149c1e0a9f6.png" alt="image"></div></figure>
Incorrect:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257794184-52182c9d-16b8-4f6c-a1ad-cff75ff0b963.png" alt="image"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257792743-e01b5ab6-6dae-453e-8c30-e03d167de5fd.png" alt="image"></div></figure>
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5_
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
Since angular's `ng-select` does not support the `required` attribute we skip on that one.
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Go to the global new meetings form
2. Submit the form without completing anything
3. An inline "Please fill out this field." message appears under the Title.
4. ~~Complete
5. ~~Now
6. Complete the Project field too and remove the Start Date date section.
7. The form is being reloaded again we receive the error toast stating the "Start date is not a valid date."
### What is the buggy behavior?
* The error toast is being shown in the steps 5 & 7.
### What is the expected behavior?
* In steps 5 and 7 we should receive an inline "Please fill out this field" message instead of submitting the page and displaying the error toast.
### Screenshots and other files
Correct:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257792601-2e8d6fcb-ba2d-4442-b59b-a149c1e0a9f6.png" alt="image"></div></figure>
Incorrect:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257794184-52182c9d-16b8-4f6c-a1ad-cff75ff0b963.png" alt="image"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://user-images.githubusercontent.com/83396/257792743-e01b5ab6-6dae-453e-8c30-e03d167de5fd.png" alt="image"></div></figure>
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
_If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5_
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._