pluginsGLPI / geninventorynumber

Inventorynumber generation
GNU General Public License v3.0
8 stars 14 forks source link

fix: error during plugin update #93

Closed Rom1-B closed 4 months ago

Rom1-B commented 4 months ago

https://github.com/pluginsGLPI/geninventorynumber/issues/89

Plugin update from 2.8.3 to 2.8.4 in Glpi 10.0.15 fails with the following error:

glpiphplog.CRITICAL:   *** Uncaught Exception ArgumentCountError: Too few arguments to function DBmysql::update(), 2 passed in /var/www/glpi/marketplace/geninventorynumber/inc/configfield.class.php on line 124 and at least 3 expected in /var/www/glpi/src/DBmysql.php at line 1500
  Backtrace :
  ...eninventorynumber/inc/configfield.class.php:124 DBmysql->update()
  marketplace/geninventorynumber/hook.php:80         PluginGeninventorynumberConfigField::install()
  src/Plugin.php:922                                 plugin_geninventorynumber_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:546                 call_user_func()
  src/Marketplace/Controller.php:436                 Glpi\Marketplace\Controller->setPluginState()
  src/Marketplace/Controller.php:179                 Glpi\Marketplace\Controller->installPlugin()
  ajax/marketplace.php:75                            Glpi\Marketplace\Controller->downloadPlugin()
  public/index.php:82                                require()
AdrienClairembault commented 4 months ago

Don't forget to update the CHANGELOG.