pluginsGLPI / geninventorynumber

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

Check class existence before creating its config #45

Closed cedric-anne closed 2 years ago

cedric-anne commented 2 years ago

Since #39 , the following error occurs in GLPI 9.5.

*** PHP Warning (2): call_user_func() expects parameter 1 to be a valid callback, class 'Cable' not found in /var/www/glpi/plugins/geninventorynumber/inc/configfield.class.php at line 127
  Backtrace :
  plugins/geninventorynumber/inc/config.class.php:68 PluginGeninventorynumberConfigField::showForConfig()
  inc/commonglpi.class.php:637                       PluginGeninventorynumberConfig::displayTabContentForItem()
  ajax/common.tabs.php:106                           CommonGLPI::displayStandardTab()