Skip to content

Commit

Permalink
THE-1268 FIX erreur quand recherche avancee premier champ vide
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdelafontaine committed Apr 22, 2024
1 parent e62132d commit 4b15de2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/theses/search/AdvancedForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function objectToQuery() {
let result = "";
formFields.value.forEach((field, index) => {
try {
field.value = field.value.replace(":", "\\:")
if (field.value === "") {
result += " ";
Expand All @@ -199,6 +200,8 @@ function objectToQuery() {
result += ` ${operator.value}`;
}
}
} catch(error) {
}
});
return deleteEndOperator(result.replaceAll('status:(accessible)', 'accessible:oui').replaceAll('sujetsLibelle', '(sujetsLibelle').trim());
Expand Down

0 comments on commit 4b15de2

Please sign in to comment.