Validierungs-Ergebnis im Suchformular beachten #1549
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Das Problem fiel mir bei einem Custom-Value auf. In einem einfachen Eingabefeld (text) sollten drei Begriffe (Breitengrad Längengrad Radius) für eine Umkreissuche eingegeben werden. Um das richtige Format sicherzustellen wurde auch ein Custom-Validator hinzugefügt. Der Validator macht seine Arbeit wie er soll. Aber die Query wurde dennoch (mit ungeeigneten Werten) gefüllt, was in einer Exception mündete.
Mit der hier eingebauten Abfrage nach Ausführen des Such-Formulars wird ohne Veränderung der Query abgebrochen. Somit werden Liste und Suchformular (nun mit Fehlermeldung) angezeigt.
Falls sonst noch wer auf das Problem stößt: ich helfe mir jetzt mit doppelter Fehleranalyse: mit dem Custom-Validator für das Formular und dasselbe zusätzlich in value_class::getSearchFilter.