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

The Ticket page does not display the object attached via the API. An object of the Network Equipment type. #9195

Closed kofe88 closed 3 years ago

kofe88 commented 3 years ago

Describe the bug

Hello. The Ticket page does not display the object attached via the API. An object of the Network Equipment type. The attached object is not displayed in the Ticket. The object displays the Ticket to which it is attached.

Page(s) URL

/front/ticket.form.php

To reproduce

Steps to reproduce the behavior:

Using the API, we create a Ticket. Using the API, we attach an object of the Network Equipment type to it.

Screenshots 1 2 3 4 5

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

[code]   GLPI 9.5.2 ( => /var/www/html/glpi) Installation mode: TARBALL
--

Operating system: Linux support 5.4.0-60-generic #67~18.04.1-Ubuntu SMP Tue Jan 5 22:01:05 UTC 2021 x86_64 PHP 7.2.24-0ubuntu0.18.04.7 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc,  apcu, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json,  ldap, libxml, mbstring, memcache, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, pspell, readline, recode, session, shmop,   snmp, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip,     zlib) Setup: max_execution_time="600" memory_limit="512M" post_max_size="500M" safe_mode="" session.save_handler="files"    upload_max_filesize="100M"  Software: Apache/2.4.29 (Ubuntu) (Apache/2.4.29 (Ubuntu) Server at support.aaa.ru Port aaa)     Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36 Server Software: Ubuntu 18.04    Server Version: 10.1.48-MariaDB-0ubuntu0.18.04.1    Server SQL Mode:    Parameters: glpi@localhost/glpi     Host info: Localhost via UNIX socket     PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory > 64 Mio - Perfect! 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 intl extension is installed ldap extension is installed apcu extension is installed Zend OPcache extension is installed xmlrpc extension is installed CAS extension is installed exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (10.1.48) - Perfect! Timezones seems loaded in database The log file has been created successfully. Write access to /var/www/html/glpi/config has been validated. Write access to /var/www/html/glpi/files has been validated. Write access to /var/www/html/glpi/files/_dumps has been validated. Write access to /var/www/html/glpi/files/_sessions has been validated. Write access to /var/www/html/glpi/files/_cron has been validated. Write access to /var/www/html/glpi/files/_graphs has been validated. Write access to /var/www/html/glpi/files/_lock has been validated. Write access to /var/www/html/glpi/files/_plugins has been validated. Write access to /var/www/html/glpi/files/_tmp has been validated. Write access to /var/www/html/glpi/files/_cache has been validated. Write access to /var/www/html/glpi/files/_rss has been validated. Write access to /var/www/html/glpi/files/_uploads has been validated. Write access to /var/www/html/glpi/files/_pictures has been validated. Write access to /var/www/html/glpi/marketplace has been validated. Web access to files directory is protected

GLPI_ROOT: /var/www/html/glpi GLPI_CONFIG_DIR: /var/www/html/glpi/config GLPI_VAR_DIR: /var/www/html/glpi/files GLPI_MARKETPLACE_DIR: /var/www/html/glpi/marketplace GLPI_USE_CSRF_CHECK: 1 GLPI_CSRF_EXPIRES: 7200 GLPI_CSRF_MAX_TOKENS: 100 GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org GLPI_INSTALL_MODE: TARBALL GLPI_NETWORK_MAIL: glpi@teclib.com GLPI_NETWORK_SERVICES: https://services.glpi-network.com GLPI_MARKETPLACE_PRERELEASES:  GLPI_USER_AGENT_EXTRA_COMMENTS:  GLPI_AJAX_DASHBOARD: 1 GLPI_CALDAV_IMPORT_STATE: 0 GLPI_DEMO_MODE: 0 GLPI_FORCE_EMPTY_SQL_MODE: 1 GLPI_DOC_DIR: /var/www/html/glpi/files GLPI_CACHE_DIR: /var/www/html/glpi/files/_cache GLPI_CRON_DIR: /var/www/html/glpi/files/_cron GLPI_DUMP_DIR: /var/www/html/glpi/files/_dumps GLPI_GRAPH_DIR: /var/www/html/glpi/files/_graphs GLPI_LOCAL_I18N_DIR: /var/www/html/glpi/files/_locales GLPI_LOCK_DIR: /var/www/html/glpi/files/_lock GLPI_LOG_DIR: /var/www/html/glpi/files/_log GLPI_PICTURE_DIR: /var/www/html/glpi/files/_pictures GLPI_PLUGIN_DOC_DIR: /var/www/html/glpi/files/_plugins GLPI_RSS_DIR: /var/www/html/glpi/files/_rss GLPI_SESSION_DIR: /var/www/html/glpi/files/_sessions GLPI_TMP_DIR: /var/www/html/glpi/files/_tmp GLPI_UPLOAD_DIR: /var/www/html/glpi/files/_uploads GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/ GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/ GLPI_I18N_DIR: /var/www/html/glpi/locales GLPI_VERSION: 9.5.2 GLPI_SCHEMA_VERSION: 9.5.2 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2020

htmlawed/htmlawed version 1.2.5 in (/var/www/html/glpi/vendor/htmlawed/htmlawed) phpmailer/phpmailer version 6.1.6 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src) simplepie/simplepie version 1.5.5 in (/var/www/html/glpi/vendor/simplepie/simplepie/library) tecnickcom/tcpdf version 6.3.5 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/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV) sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib) sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib) sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib) laminas/laminas-cache in (/var/www/html/glpi/vendor/laminas/laminas-cache/src) laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src) laminas/laminas-serializer in (/var/www/html/glpi/vendor/laminas/laminas-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) scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src) laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol) laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src) rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src) blueimp/jquery-file-upload in (/var/www/html/glpi/vendor/blueimp/jquery-file-upload/server/php) ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src) psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log) psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src) mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors) guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src) guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src) wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src) paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src) phpCas version 1.3.3 in (/usr/share/php)

Server: 'aaa.aaa.ru', Port: '389', BaseDN: 'DC=aaa,DC=ru', Connection filter:       '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN: 'glpi', Use TLS: none

Not active

Way of sending emails: PHP

Name: 'glpi@aaa.ru' Active: Yes     Server: '{bis.aaa.ru/imap/novalidate-cert/notls}INBOX' Login: 'glpi@aaa.ru' Password: Yes

activity             Name: Activities                     Version: 3.0.0      State: Not installed  actualtime           Name: ActualTime                     Version: 1.5.0      State: Not installed  advancedplanning     Name: advancedplanning               Version: 0.2.0      State: Not installed  barcode              Name: Barcode                        Version: 2.5.0      State: Not installed  connections          Name: Connections                    Version: 9.5        State: Not installed  datainjection        Name: Data injection                 Version: 2.9.0      State: Not installed  databases            Name: Databases                      Version: 2.3.2      State: Installed / not activated  flyvemdm             Name: Flyve Mobile Device Management Version: 2.0.0      State: Not installed  formcreator          Name: Form Creator                   Version: 2.11.2     State: Installed / not activated  fusioninventory      Name: FusionInventory                Version: 9.5.0+1.0  State: Enabled    gappessentials       Name: Gapp Essentials                Version: 1.2.0      State: Enabled    sccm                 Name: Interface - SCCM               Version: 2.2.2      State: Not installed  geninventorynumber   Name: Inventory number generation    Version: 2.5.0      State: Not installed  addressing           Name: IP Adressing                   Version: 2.9.0      State: Not installed  uninstall            Name: Item's Lifecycle (uninstall)   Version: 2.7.0      State: Not installed  livechat             Name: Livechat                       Version: 1.0.4      State: Installed / not activated  room                 Name: Rooms                          Version: 3.1.3      State: Not installed  screenshot           Name: Screenshot                     Version: 1.1.3      State: Enabled    taskdrop             Name: TaskDrop                       Version: 1.2.0      State: Enabled    telegrambot          Name: TelegramBot                    Version: 3.0        State: Enabled    useditemsexport      Name: Used items export              Version: 2.4.0      State: Installed / not activated  webresources         Name: Web Resources                  Version: 1.3.2      State: Installed / not activated  yagp                 Name: yagp                           Version: 1.1.1      State: Enabled    satisfaction         Name: Больше вопросов для оценки удо Version: 1.5.1      State: Not installed  browsernotification  Name: Браузерные уведомления Version: 1.1.9      State: Enabled    itilcategorygroups   Name: Группы ITIL Категории     Version: 2.4.1      State: Installed / not activated   fields               Name: Дополнительные поля    Version: 1.12.4     State: Enabled    moreticket           Name: Еще заявка                     Version: 1.6.0      State: Enabled    environment          Name: Окружение                      Version: 2.4.1      State: Not installed  dashboard            Name: Панель отчетов              Version: 1.0.2      State: Enabled   escalade             Name: Переназначение             Version: 2.6.1      State: Enabled    pdf                  Name: Печать в PDF                   Version: 1.7.0      State: Enabled    behaviors            Name: Поведения                      Version: 2.4.1      State: Not installed  tasklists            Name: Список задач                  Version: 1.6.0      State: Enabled     treeview             Name: Список по местонахождению Version: 1.9.0      State: Not installed   printercounters      Name: Счетчики принтера        Version: 1.7.0      State: Not installed    news                 Name: Уведомления                   Version: 1.8.2      State: Enabled     order                Name: Управление заказами    Version: 2.6.0      State: Not installed  genericobject        Name: Управление объектами  Version: 2.9.2      State: Installed / not activated   tag                  Name: Управление тэгами        Version: 2.8.0      State: Enabled
[/code]
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.