mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add default values to cast (#11977)
Makes the SQL query correctly select id columns as int instead of string
This commit is contained in:
@@ -206,6 +206,14 @@ abstract class PaginatedAjaxController extends Controller
|
||||
*/
|
||||
protected function adjustFilterValue($field, $value)
|
||||
{
|
||||
switch ($field) {
|
||||
case 'device':
|
||||
case 'device_id':
|
||||
case 'port_id':
|
||||
$value = (int) $value;
|
||||
break;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user