pluginsGLPI / fields

Additionals fields for GLPI
http://glpi-plugins.rtfd.io/en/latest/fields/index.html
GNU General Public License v2.0
90 stars 66 forks source link

date_mod (core) field locked when asset is updated #849

Open ladenree76000 opened 2 hours ago

ladenree76000 commented 2 hours ago

Code of Conduct

Is there an existing issue for this?

GLPI Version

10.0.16

Plugin version

1.21.15 (same on 1.21.11)

Bug description

only when plugin activated, any manual change on asset standard field (name, location, groups,...) locks date_mod field.

date_mod should never be locked;
when date_mod is locked it is still updated, however when glpi-agent sends an inventory locked date_mod fields generate php errors.

Relevant log output

No response

Page URL

No response

Steps To reproduce

  1. activate fields plugin and create any custom field on computer
  2. open any computer and check locks tab (date_mod should'nt be locked, if yes unlock it)
  3. update comment (or any standard field)
  4. check again locks tab : comment is locked => OK date_mod is locked => IT SHOULDN'T
  5. unlock date_mod
  6. deactivate fields
  7. update comment (or any standard field)
  8. check again locks tab : comment is locked => OK date_mod is not locked =>OK

Your GLPI setup information

GLPI 10.0.16 ( => /var/www/glpi) Installation mode: TARBALL Current language:fr_FR Operating system: Linux xxxxx-test 5.15.0-112-generic #​122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 PHP 8.1.29 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib) Setup: max_execution_time="600" memory_limit="128M" post_max_size="16M" safe_mode="" session.save_handler="files" upload_max_filesize="64M" disable_functions="" Software: Apache () Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 Server Software: Ubuntu 22.04 Server Version: 10.6.18-MariaDB-0ubuntu0.22.04.1 Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION Parameters: glpi@localhost/glpi Host info: Localhost via UNIX socket

plugins : badges Name: Badges Version: 3.0.0 State: Enabled
Install Method: Marketplace fields Name: Champs supplémentaires Version: 1.21.15 State: Enabled
Install Method: Marketplace behaviors Name: Comportements Version: 2.7.3 State: Enabled
Install Method: Marketplace datainjection Name: Data Injection Version: 2.13.5 State: Enabled
Install Method: Marketplace formcreator Name: Form Creator Version: 2.13.9 State: Enabled
Install Method: Marketplace pdf Name: Impression pdf Version: 3.0.0 State: Enabled
Install Method: Marketplace reports Name: Rapports Version: 1.16.0 State: Enabled
Install Method: Manual

Anything else?

No response

ladenree76000 commented 2 hours ago

related to https://github.com/glpi-project/glpi/issues/18112