Add default values to cast (#11977)

Makes the SQL query correctly select id columns as int instead of string
This commit is contained in:
Jellyfrog
2020-08-04 14:41:10 +02:00
committed by GitHub
parent 98e478843f
commit abc0ca85f6

View File

@@ -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;
}
}