Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur quand trie si champ pas triable #548

Open
PaTaToX opened this issue Jul 19, 2023 · 0 comments
Open

Erreur quand trie si champ pas triable #548

PaTaToX opened this issue Jul 19, 2023 · 0 comments

Comments

@PaTaToX
Copy link

PaTaToX commented Jul 19, 2023

Gally Platform version(s) affected: 1.0.x

Description
Si je fais un trie sur un champ qui n'est pas triable j'obtiens le message d'erreur suivant :

Gally\\Search\\Elasticsearch\\Builder\\Request\\SortOrder\\Standard::__construct(): Argument #1 ($field) must be of type string, null given, called in /srv/api/packages/gally-standard/src/Search/Elasticsearch/Builder/Request/SortOrder/SortOrderBuilder.php on line 86

Si je fais un trie sur un champ qui n'existe pas, ça marche sans message d'erreur.

Possible Solution
Message plus verbeux qui indique que le champ x n'est pas triable ou ignorer l'erreur comme quand il n'existe pas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant