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

tag ##ticket.globalvalidation## not working #9208

Closed tguichard25 closed 3 years ago

tguichard25 commented 3 years ago

Describe the bug

I created a notification on the response to a validation request. In my email I use the ##ticket.globalvalidation## tag. The problem is that the validation status arrives on pending validation, while the email is sent to the response of the validation request. In the ticket, the overall validation status is of course accepted or refused.

To reproduce

Steps to reproduce the behavior:

  1. Create a notification for response to a ticket validation request with ##ticket.globalvalidation## tag.
  2. Create a ticket with validation request
  3. Accept or refuse validation
  4. Notification mail is sent with pending validation status

Expected behavior

mail is sent with the correct global validation status

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

Vérifier si une nouvelle version est disponible -- [code]   GLPI 9.5.5 ( => C:\glpi) Installation mode: TARBALL Operating system: Windows NT SRV-PARC01 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) i586 PHP 7.2.7 cgi-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, readline, session, snmp, soap, sodium, standard, tidy, tokenizer, wddx, wincache, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib) Setup: max_execution_time="8000" memory_limit="1024M" post_max_size="450M" safe_mode="" session.save_handler="files" upload_max_filesize="450M" Software: Microsoft-IIS/8.5 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Server Software: MySQL Community Server (GPL) Server Version: 5.6.41-log Server SQL Mode: Parameters: root@localhost/glpi Host info: localhost via TCP/IP 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 not present Zend OPcache extension is installed xmlrpc extension is installed CAS extension is not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (5.6.41) - Perfect! Timezones seems loaded in database The log file has been created successfully. Write access to C:\glpi/files/_cache has been validated. Write access to C:\glpi/config has been validated. Write access to C:\glpi/files/_cron has been validated. Write access to C:\glpi/files has been validated. Write access to C:\glpi/files/_dumps has been validated. Write access to C:\glpi/files/_graphs has been validated. Write access to C:\glpi/files/_lock has been validated. Write access to C:\glpi/files/_pictures has been validated. Write access to C:\glpi/files/_plugins has been validated. Write access to C:\glpi/files/_rss has been validated. Write access to C:\glpi/files/_sessions has been validated. Write access to C:\glpi/files/_tmp has been validated. Write access to C:\glpi/files/_uploads has been validated. Write access to C:\glpi/marketplace has been validated. Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration. GLPI_ROOT: C:\glpi GLPI_CONFIG_DIR: C:\glpi/config GLPI_VAR_DIR: C:\glpi/files GLPI_MARKETPLACE_DIR: C:\glpi/marketplace GLPI_USE_CSRF_CHECK: 1 GLPI_CSRF_EXPIRES: 7200 GLPI_CSRF_MAX_TOKENS: 100 GLPI_USE_IDOR_CHECK: 1 GLPI_IDOR_EXPIRES: 7200 GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 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_MARKETPLACE_ALLOW_OVERRIDE: 1 GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1 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: C:\glpi/files GLPI_CACHE_DIR: C:\glpi/files/_cache GLPI_CRON_DIR: C:\glpi/files/_cron GLPI_DUMP_DIR: C:\glpi/files/_dumps GLPI_GRAPH_DIR: C:\glpi/files/_graphs GLPI_LOCAL_I18N_DIR: C:\glpi/files/_locales GLPI_LOCK_DIR: C:\glpi/files/_lock GLPI_LOG_DIR: C:\glpi/files/_log GLPI_PICTURE_DIR: C:\glpi/files/_pictures GLPI_PLUGIN_DOC_DIR: C:\glpi/files/_plugins GLPI_RSS_DIR: C:\glpi/files/_rss GLPI_SESSION_DIR: C:\glpi/files/_sessions GLPI_TMP_DIR: C:\glpi/files/_tmp GLPI_UPLOAD_DIR: C:\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: C:\glpi/locales GLPI_VERSION: 9.5.5 GLPI_SCHEMA_VERSION: 9.5.5 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2021 htmlawed/htmlawed version 1.2.5 in (C:\glpi\vendor\htmlawed\htmlawed) phpmailer/phpmailer version 6.1.6 in (C:\glpi\vendor\phpmailer\phpmailer\src) simplepie/simplepie version 1.5.6 in (C:\glpi\vendor\simplepie\simplepie\library) tecnickcom/tcpdf version 6.3.5 in (C:\glpi\vendor\tecnickcom\tcpdf) michelf/php-markdown in (C:\glpi\vendor\michelf\php-markdown\Michelf) true/punycode in (C:\glpi\vendor\true\punycode\src) iamcal/lib_autolink in (C:\glpi\vendor\iamcal\lib_autolink) sabre/dav in (C:\glpi\vendor\sabre\dav\lib\DAV) sabre/http in (C:\glpi\vendor\sabre\http\lib) sabre/uri in (C:\glpi\vendor\sabre\uri\lib) sabre/vobject in (C:\glpi\vendor\sabre\vobject\lib) laminas/laminas-cache in (C:\glpi\vendor\laminas\laminas-cache\src) laminas/laminas-i18n in (C:\glpi\vendor\laminas\laminas-i18n\src) laminas/laminas-serializer in (C:\glpi\vendor\laminas\laminas-serializer\src) monolog/monolog in (C:\glpi\vendor\monolog\monolog\src\Monolog) sebastian/diff in (C:\glpi\vendor\sebastian\diff\src) elvanto/litemoji in (C:\glpi\vendor\elvanto\litemoji\src) symfony/console in (C:\glpi\vendor\symfony\console) scssphp/scssphp in (C:\glpi\vendor\scssphp\scssphp\src) laminas/laminas-mail in (C:\glpi\vendor\laminas\laminas-mail\src\Protocol) laminas/laminas-mime in (C:\glpi\vendor\laminas\laminas-mime\src) rlanvin/php-rrule in (C:\glpi\vendor\rlanvin\php-rrule\src) blueimp/jquery-file-upload in (C:\glpi\vendor\blueimp\jquery-file-upload\server\php) ramsey/uuid in (C:\glpi\vendor\ramsey\uuid\src) psr/log in (C:\glpi\vendor\psr\log\Psr\Log) psr/simple-cache in (C:\glpi\vendor\psr\simple-cache\src) mexitek/phpcolors in (C:\glpi\vendor\mexitek\phpcolors\src\Mexitek\PHPColors) guzzlehttp/guzzle in (C:\glpi\vendor\guzzlehttp\guzzle\src) guzzlehttp/psr7 in (C:\glpi\vendor\guzzlehttp\psr7\src) wapmorgan/unified-archive in (C:\glpi\vendor\wapmorgan\unified-archive\src) paragonie/sodium_compat in (C:\glpi\vendor\paragonie\sodium_compat\src) Not active news Name: Alertes Version: 1.9.0 State: Enabled fields Name: Champs supplémentaires Version: 1.12.6 State: Enabled behaviors Name: Comportements Version: 2.4.0 State: Enabled formcreator Name: Form Creator Version: 2.11.4 State: Enabled fusioninventory Name: FusionInventory Version: 9.5+3.0 State: Enabled genericobject Name: Gestion d'objets Version: 2.11.0 State: Enabled pdf Name: Impression pdf Version: 2.0.0 State: Enabled mreporting Name: Plus de rapports Version: 1.7.3 State: Enabled reservation Name: Reservation Version: 2.3.5 State: Enabled dashboard Name: Tableau de bord Version: 0.9.9 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.