From 5f5788e90cb7d95f9de7a9f62aec8c2c238267cd Mon Sep 17 00:00:00 2001 From: laf Date: Sun, 30 Aug 2015 13:50:44 -0700 Subject: [PATCH] Stop ifAlias being set to blank --- html/includes/forms/update-ifalias.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/includes/forms/update-ifalias.inc.php b/html/includes/forms/update-ifalias.inc.php index 188d02e2c9..e561aa5e1b 100644 --- a/html/includes/forms/update-ifalias.inc.php +++ b/html/includes/forms/update-ifalias.inc.php @@ -23,6 +23,10 @@ logfile($descr . ','. $device_id . ','. $ifName. ','. $port_id); if (!empty($ifName) && is_numeric($port_id)) { // We have ifName and port id so update ifAlias + if (empty($descr)) { + $descr = 'repoll'; + // Set to repoll so we avoid using ifDescr on port poll + } if (dbUpdate(array('ifAlias'=>$descr), 'ports', '`port_id`=?', array($port_id)) > 0) { $device = device_by_id_cache($device_id); if (empty($descr)) {