pluginsGLPI / order

Order plugin for GLPI
GNU General Public License v3.0
39 stars 44 forks source link

fix(core): fix invalid relation declared #356

Closed stonebuzz closed 1 year ago

stonebuzz commented 1 year ago

Fix error from Invalid relations declared

[2023-05-02 07:34:32] glpiphplog.WARNING:   *** PHP User Warning (512): Invalid relations declared between "glpi_plugin_order_othertypes" and "glpi_plugin_order_others" table. Target field "othertypes_id" is not a foreign key field. in /var/www/html/GLPI/src/DbUtils.php at line 2144
  Backtrace :
  src/DbUtils.php:2144                               trigger_error()
  inc/db.function.php:585                            DbUtils->getDbRelations()
  src/CommonDBTM.php:866                             getDbRelations()
  src/CommonDBTM.php:788                             CommonDBTM->cleanRelationData()
  src/CommonDBTM.php:2064                            CommonDBTM->deleteFromDB()
  src/RuleMatchedLog.php:183                         CommonDBTM->delete()

Internal ref : 27839