formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Form search with special characters does not work

Open vinilamelas opened this issue 1 year ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'plugin splash screen'
  2. Click on 'click on the search field'
  3. Scroll down to '....'
  4. See error

Type the name of the form that has "-" for example and the form does not appear

image

image

GLPI / Plugins (please complete the following information):

  • GLPI version 10.0.9
  • Formcreator 2.13.6

vinilamelas avatar Aug 09 '23 17:08 vinilamelas

Hi

The search system supports operators like + and -. This is a side effect of the search engine embedded in the dbms. 2 search modes are provided by the dbms and only one fits the needs of the plugin. The search operators cannot be disabled, and using them is not expected (because not documented and because the feature targets people who are not very experimented with computing).

You should just type words in the search field.

btry avatar Aug 09 '23 17:08 btry

Hello, Does this mean that searching for a word "e-mail" will not work and you will need guidance to just write "mail"?

vinilamelas avatar Aug 09 '23 19:08 vinilamelas

I'm not sure, as I did not tested such case. I believe that a word like e-mail will be processed as a single word.

The operator role of - and + should be conditioned by a preceding space character.

btry avatar Aug 09 '23 19:08 btry

Hi

I did a test and searching for a single word "e-mail" fails. Unfortunately there is not much I can do because the plugin cannot change the search DBMS engine mode without degrading the search experience.

btry avatar Aug 23 '23 08:08 btry