Skip to content

Commit b229268

Browse files
author
David Durieux
committed
FIx display aggregat of network port on networkequipment form
1 parent 8002cab commit b229268

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

fusioninventory/inc/networkequipment.class.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -692,17 +692,21 @@ function showNetworkPortDetail($data, $monitoring, $aggrega=0) {
692692
echo "<tr class='tab_bg_1 center' height='40'".$background_img.">";
693693

694694
if ($aggrega) {
695-
echo "<td></td>";
695+
echo "<td></td><td>";
696696
}
697-
echo "<td><a href='networkport.form.php?id=".$data["id"]."'>".
697+
if (!$aggrega) {
698+
if ($data['instantiation_type'] == 'NetworkPortAggregate') {
699+
echo "<td>";
700+
} else {
701+
echo "<td colspan='2'>";
702+
}
703+
}
704+
echo "<a href='networkport.form.php?id=".$data["id"]."'>".
698705
$data["name"]."</a>";
699706
Html::showToolTip($data['ifdescr']);
700-
echo "</td>";
701707
if (!$aggrega) {
702708
if ($data['instantiation_type'] == 'NetworkPortAggregate') {
703709
echo "<td><i><font style='color: grey'>".__('Aggregation port')."</font></i></td>";
704-
} else {
705-
echo "<td></td>";
706710
}
707711
}
708712

0 commit comments

Comments
 (0)