Skip to content

Commit

Permalink
Fix issue saving PowerPort Notes on Refresh via SNMP
Browse files Browse the repository at this point in the history
  • Loading branch information
timlegge committed Oct 31, 2019
1 parent ec16425 commit f9e87f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,12 @@ function updatedevice($devid){
// This function should be hidden if they don't have rights, but just in case
if($dev->Rights=="Write"){
foreach(CDUInfo::getPortAlias($_POST['refreshcdu']) as $PortNumber => $Notes){
$port=new DevicePorts();
$port->DeviceID=$_POST['refreshcdu'];
$port->PortNumber=$PortNumber;
$port->getPort();
$port->Notes=$Notes;
$port->updatePort();
$cord=new PowerPorts();
$cord->DeviceID=$_POST['refreshcdu'];
$cord->PortNumber=$PortNumber;
$cord->getPort();
$cord->Notes=$Notes;
$cord->updatePort();
}
}
echo json_encode(CDUInfo::getPortAlias($_POST['refreshcdu']));
Expand Down

0 comments on commit f9e87f1

Please sign in to comment.