pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

Form search with special characters does not work #3347

Open vinilamelas opened 1 year ago

vinilamelas commented 1 year ago

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):

btry commented 1 year ago

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.

vinilamelas commented 1 year ago

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

btry commented 1 year ago

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 commented 1 year ago

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.