mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: alert flags on wireless sensors table (#6556)
* fix: alert flags on wireless sensors table Also check the low limit. * Set null when the value is updated to a non-numeric or empty value.
This commit is contained in:
committed by
Neil Lathwood
parent
6b2ae00e27
commit
02d9b36720
@@ -24,7 +24,7 @@ if (!is_numeric($_POST['device_id']) || !is_numeric($_POST['sensor_id']) || !iss
|
||||
exit;
|
||||
} else {
|
||||
$update = dbUpdate(
|
||||
array($_POST['value_type'] => $_POST['data'], 'sensor_custom' => 'Yes'),
|
||||
array($_POST['value_type'] => set_null($_POST['data'], array('NULL')), 'sensor_custom' => 'Yes'),
|
||||
'sensors',
|
||||
'`sensor_id` = ? AND `device_id` = ?',
|
||||
array($_POST['sensor_id'], $_POST['device_id'])
|
||||
|
||||
Reference in New Issue
Block a user