mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix testing state sensor index dumping order. (#8117)
Add netonix state sensor test data
This commit is contained in:
@@ -583,7 +583,13 @@ class ModuleTestHelper
|
||||
}
|
||||
}
|
||||
|
||||
$rows = dbFetchRows("SELECT * FROM `$table` $join $where", $params);
|
||||
if (isset($info['order_by'])) {
|
||||
$order_by = " ORDER BY {$info['order_by']}";
|
||||
} else {
|
||||
$order_by = '';
|
||||
}
|
||||
|
||||
$rows = dbFetchRows("SELECT * FROM `$table` $join $where $order_by", $params);
|
||||
|
||||
// remove unwanted fields
|
||||
if (isset($info['included_fields'])) {
|
||||
|
||||
Reference in New Issue
Block a user