InfotelGLPI / printercounters

Plugin Printercounters for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
14 stars 9 forks source link

Fata error : Deleting the record model even if linked items #16

Closed amma35 closed 7 years ago

amma35 commented 7 years ago

Fata error : Deleting the record model even if linked items

Fatal error: Uncaught TypeError: Argument 1 passed to PluginPrintercountersBillingmodel::checkLinkedRecordModels() must be an instance of PluginPrintercountersCountertype_Recordmodel, instance of PluginPrintercountersRecordmodel given, called in /var/www/html/glpi/plugins/printercounters/hook.php on line 148 and defined in /var/www/html/glpi/plugins/printercounters/inc/billingmodel.class.php:352 Stack trace: #0 /var/www/html/glpi/plugins/printercounters/hook.php(148): PluginPrintercountersBillingmodel->checkLinkedRecordModels(Object(PluginPrintercountersRecordmodel)) #1 /var/www/html/glpi/inc/plugin.class.php(1113): plugin_pre_item_purge_printercounters(Object(PluginPrintercountersRecordmodel)) #2 /var/www/html/glpi/inc/commondbtm.class.php(1321): Plugin::doHook('pre_item_purge', Object(PluginPrintercountersRecordmodel)) #3 /var/www/html/glpi/inc/massiveaction.class.php(1076): CommonDBTM->delete(Array, 1) #4 /var/www/html/glpi/inc/massiveaction.class.php(991): MassiveAction::processMassiveActionsForOneItemtype(Object(Mass in /var/www/html/glpi/plugins/printercounters/inc/billingmodel.class.php on line 352