Describe the bug
Content of repository in Listener ($this->query) is empty after triggered validation error.
To Reproduce
Steps to reproduce the behavior:
Add SubtractListener from Documentation
Add simple Screen with SubtractListener and additional method save
public function save(Request $request): void
{
$request->validate([
'anyField' => 'required',
]);
}
Add value for minuend and subtrahend fields.
Field result is displayed with value
Save form without anyField value (for trigger error from validation)
See page with validation error, with values in fields minuend and subtrahend, but field result is 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):
Describe the bug Content of repository in Listener (
$this->query
) is empty after triggered validation error.To Reproduce Steps to reproduce the behavior:
SubtractListener
from DocumentationSubtractListener
and additional method saveminuend
andsubtrahend
fields.result
is displayed with valueminuend
andsubtrahend
, but fieldresult
is 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 fieldresult
is displayed after trigger validation error)Screenshots Step 4 Step 6
Server (please complete the following information):