Commit 81815ef6 authored by remi's avatar remi
Browse files

[0.71] fix netplug visibility in network report (by yllen) (ok c'est du luxe)

parent c544f3f7
......@@ -81,8 +81,7 @@ if (isset($_POST["location"])&&$_POST["location"]){
$mac2="";
$portordi="";
if ($end1){
$np->getFromDB($end1);
if ($end1 && $np->getFromDB($end1)){
$np->getDeviceData($np->fields["on_device"],$np->fields["device_type"]);
$ordi=$np->device_name;
$ip2=$np->fields['ifaddr'];
......
......@@ -81,7 +81,7 @@ if (countElementsInTableForMyEntities("glpi_dropdown_netpoint")>0){
echo "<table class='tab_cadre' width='500'>";
echo "<tr class='tab_bg_1'><td>".$LANG["reports"][42]."</td>";
echo "<td>";
dropdownNetpoint("prise",0,0,1,$_SESSION["glpiactive_entity"]);
dropdownNetpoint("prise",0,-1,1,$_SESSION["glpiactive_entity"]);
echo "</td><td align='center' width='120'>";
echo "<input type='submit' value='".$LANG["reports"][15]."' class='submit'>";
echo "</td></tr>";
......
Supports Markdown
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