orchidsoftware / orchidsoftware/platform
Empty repository in Listener after validation error
Open
@tabuna is already working on this.
Since Mar 2, 2024.
Errors
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 662
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Describe the bug
Content of repository in Listener ($this->query) is empty after triggered validation error.
To Reproduce
Steps to reproduce the behavior:
- Add
SubtractListenerfrom Documentation - Add simple Screen with
SubtractListenerand additional method save
public function save(Request $request): void
{
$request->validate([
'anyField' => 'required',
]);
}
- Add value for
minuendandsubtrahendfields. - Field
resultis displayed with value - Save form without anyField value (for trigger error from validation)
- See page with validation error, with values in fields
minuendandsubtrahend, but fieldresultis not displayed. Because this field is displayed when$this->query->has('result'), but no value in repository.
Expected behavior
Repository in Listener ($this-query) contents actual data (then field result is displayed after trigger validation error)
Screenshots
Step 4
Step 6
Server (please complete the following information):
- Platfrom Version: 14.19.0
- Laravel Version: 10.46.0
- PHP Version: 8.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.