From f9e87f1af38d61a4694fb53d527e1038ebd06bd5 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Mon, 26 Aug 2019 14:17:05 +0000 Subject: [PATCH] Fix issue saving PowerPort Notes on Refresh via SNMP --- devices.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/devices.php b/devices.php index f8df20a56..b8a1ba4a2 100644 --- a/devices.php +++ b/devices.php @@ -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']));