We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eefeff commit b5e747fCopy full SHA for b5e747f
src/CommonDBTM.php
@@ -887,7 +887,7 @@ public function cleanRelationData()
887
foreach ($fields as $field) {
888
if (is_array($field)) {
889
// Relation based on 'itemtype'/'items_id' (polymorphic relationship)
890
- if ($this instanceof IPAddress && in_array('mainitemtype', $field) && in_array('mainitems_id', $field)) {
+ if ($itemtype instanceof IPAddress && in_array('mainitemtype', $field) && in_array('mainitems_id', $field)) {
891
// glpi_ipaddresses relationship that does not respect naming conventions
892
$itemtype_field = 'mainitemtype';
893
$items_id_field = 'mainitems_id';
0 commit comments