Commit 85b74d6b authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix itemtype affinity checks; fixes #3787

parent 9c75f1d5
......@@ -314,7 +314,7 @@ abstract class CommonDevice extends CommonDropdown {
}
$linktype = static::getItem_DeviceType();
if (in_array($itemtype, $linktype::itemAffinity())) {
if (in_array($itemtype, $linktype::itemAffinity()) || in_array('*', $linktype::itemAffinity())) {
$column = $base->addHeader('device', $content, $super, $father);
$column->setItemType($this_type,
isset($options['itemtype_title']) ? $options['itemtype_title'] : '');
......@@ -371,7 +371,7 @@ abstract class CommonDevice extends CommonDropdown {
}
$linktype = static::getItem_DeviceType();
if (in_array($item->getType(), $linktype::itemAffinity())) {
if (in_array($item->getType(), $linktype::itemAffinity()) || in_array('*', $linktype::itemAffinity())) {
$cell = $row->addCell($row->getHeaderByName('common', 'device'),
$content, $father, $this);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment