glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.24k stars 1.29k forks source link

Inconsistent dropdown content (searchable field) #6557

Closed SilentBob999 closed 3 years ago

SilentBob999 commented 4 years ago

Describe the bug

Some’s dropdowns are inconsistent between different GLPI screen.

For example, if you want to link a ticket to another ticket from TicketForm, you can search with the ID. But if you are in the KnowledgeBase or in a form from FormCreator, only the Ticket Title is searchable.

Another example, in a ticket, you can search an Asset (computer/monitor) by the username, but you cannot do that in the KnowledgeBase.

You will see below many screenshots and a list of the fields. I concentrate the comparison between Ticket.Form / knowbaseitem.form / formcreator. I did not dig further to see if there was other part with the same inconsistency.

Page(s) URL

/front/ticket.form.php -> Items front/knowbaseitem.form.php -> Associated elements /plugins/formcreator/front/formdisplay.php submitted to FormCreator - issues #1561

To reproduce

Inconsistent dropdown content

Currently searchable field in dropdown
For computer

Expected behavior

Consistent dropdown content

Wanted Searchable field by Itemtype

Logs

Screenshots

2019-11-07 09_44_34-Window 2019-11-07 09_49_48-Window 2019-11-07 10_20_39-Window 2019-11-07 10_05_04-Window 2019-11-07 09_41_52-Window 2019-11-07 09_38_47-Window

Your GLPI setup (you can find it in Setup > General menu, System tab)

[code]

GLPI 9.4.4 ( => /var/www/html/glpi)
Installation mode: TARBALL

Server

Operating system: Linux *removed* 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64
PHP 7.3.6 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
    calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml,
    mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, soap, sockets, sqlite3, standard,
    sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="256M" post_max_size="8M" safe_mode="" session.save_handler="files"
    upload_max_filesize="10M" 
Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.6 ()
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36
Server Software: MariaDB Server
    Server Version: 10.3.16-MariaDB
    Server SQL Mode: 
    Parameters: *removed*@localhost/glpi
    Host info: Localhost via UNIX socket

mysqli extension is installed
ctype extension is installed
fileinfo extension is installed
json extension is installed
mbstring extension is installed
iconv extension is installed
zlib extension is installed
curl extension is installed
gd extension is installed
simplexml extension is installed
xml extension is installed
ldap extension is installed
imap extension is installed
Zend OPcache extension is installed
APCu extension is installed
xmlrpc extension is installed
CAS extension is installed
exif extension is installed
Database version seems correct (10.3.16) - Perfect!Database version seems correct (10.3.16) - Perfect!
OK/var/www/html/glpi/files/_log : OK
OK/var/www/html/glpi/config : OK
OK/var/www/html/glpi/files : OK
OK/var/www/html/glpi/files/_dumps : OK
OK/var/www/html/glpi/files/_sessions : OK
OK/var/www/html/glpi/files/_cron : OK
OK/var/www/html/glpi/files/_graphs : OK
OK/var/www/html/glpi/files/_lock : OK
OK/var/www/html/glpi/files/_plugins : OK
OK/var/www/html/glpi/files/_tmp : OK
OK/var/www/html/glpi/files/_cache : OK
OK/var/www/html/glpi/files/_rss : OK
OK/var/www/html/glpi/files/_uploads : OK
OK/var/www/html/glpi/files/_pictures : OK
Web access to files directory is protectedWeb access to files directory is protected : OK
OKSELinux mode is Disabled

Libraries

htmLawed version 1.2.4 in (/var/www/html/glpi/lib/htmlawed)
phpmailer/phpmailer version 6.0.7 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.2 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.2.26 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
zendframework/zend-cache in (/var/www/html/glpi/vendor/zendframework/zend-cache/src)
zendframework/zend-i18n in (/var/www/html/glpi/vendor/zendframework/zend-i18n/src)
zendframework/zend-serializer in (/var/www/html/glpi/vendor/zendframework/zend-serializer/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
leafo/scssphp in (/var/www/html/glpi/vendor/leafo/scssphp/src)
phpCas version 1.3.8 in (/usr/share/pear)

LDAP directories

Server: *removed*

SQL replicas

Not active

Notifications

Way of sending emails: SMTP (anonymous@smtpout.*removed*)

Mails receivers

Name: '*removed*' Active: Yes
    Server: '{outlook.office365.com:993/imap/ssl/notls}' Login: '*removed*' Password: Yes

Plugins list

    news                 Name: Alertes                        Version: 1.5.3      State: Enabled
    financialreports     Name: Arrêtés du parc                Version: 2.6.0      State: Not activated
    impacts              Name: Asset impacts                  Version: 1.3.2      State: Not activated
    databases            Name: Bases de données               Version: 2.2.1      State: Enabled
    positions            Name: Cartographie                   Version: 4.6.0      State: Enabled
    fields               Name: Champs supplémentaires         Version: 1.10.0     State: Enabled
    timelineticket       Name: Chronologie des tickets        Version: 9.4+1.0    State: Enabled
    shellcommands        Name: Commandes Shell                Version: 2.3.0      State: Enabled
    behaviors            Name: Comportements                  Version: 2.2.1      State: Enabled
    accounts             Name: Comptes                        Version: 2.5.0      State: Not activated
    costs                Name: Costs                          Version: 1.1.0      State: Not activated
    uninstall            Name: Cycle de vie des matériels (un Version: 2.6.0      State: Enabled
    mydashboard          Name: Dashboard                      Version: 1.7.4      State: Not activated
    consumables          Name: Demande de consommables        Version: 1.5.0      State: Enabled
    environment          Name: Environnement                  Version: 2.3.0      State: Enabled
    escalade             Name: Escalades                      Version: 2.4.4      State: Enabled
    formcreator          Name: Form Creator                   Version: 2.8.5      State: Enabled
    fusioninventory      Name: FusionInventory                Version: 9.4+1.1    State: Enabled
    genericobject        Name: Gestion d'objets               Version: 2.7.0      State: Enabled
    order                Name: Gestion des commandes          Version: 2.5.2      State: Enabled
    tag                  Name: Gestion des tags               Version: 2.5.0      State: Enabled
    childticketmanager   Name: Gestionnaire de tickets enfant Version: 2.1.3      State: Enabled
    mod                  Name: GLPI Modifications             Version: 1.4.0      State: Enabled
    itilcategorygroups   Name: Helpdesk catégories groupes    Version: 2.2.0      State: Enabled
    pdf                  Name: Impression pdf                 Version: 1.6.0      State: Enabled
    datainjection        Name: Injection de fichiers          Version: 2.7.0      State: Not activated
    tasklists            Name: Liste des tâches               Version: 1.5.0      State: Enabled
    mailanalyzer         Name: Mail Analyzer                  Version: 1.6.1      State: Enabled
    metademands          Name: Meta-Demandes                  Version: 2.6.0      State: Not activated
    moreticket           Name: More ticket                    Version: 1.5.1      State: Enabled
    notifications        Name: Notifications                  Version: 9.4+1.0    State: Enabled
    father               Name: Père/Fils                      Version: 1.1        State: Enabled
    mreporting           Name: Plus de rapports               Version: 1.6.1      State: Not activated
    reports              Name: Rapports                       Version: 1.13.1     State: Not activated
    statecheck           Name: Régles de vérification d'état  Version: 2.1.1      State: Enabled
    seasonality          Name: Saisonnalités                  Version: 1.5.0      State: Enabled
    archisw              Name: Structures d'Applications      Version: 2.1.1      State: To be cleaned
    dashboard            Name: Tableau de bord                Version: 0.9.7      State: Enabled
    ticketmail           Name: Ticket Mail                    Version: 3.2.0      State: To be cleaned
    useditemsexport      Name: Used items export              Version: 2.2.0      State: To be cleaned

[/code]

Additional context

github-actions[bot] commented 3 years ago

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.