mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Fix numeric sort 'ambiguous order clause' error
This commit is contained in:
parent
54fbd0540d
commit
350b627ce1
|
@ -395,7 +395,7 @@ class AssetsController extends Controller
|
|||
|
||||
// This may not work for all databases, but it works for MySQL
|
||||
if ($numeric_sort) {
|
||||
$assets->orderByRaw($sort_override . ' * 1 ' . $order);
|
||||
$assets->orderByRaw(DB::getTablePrefix() . 'assets.' . $sort_override . ' * 1 ' . $order);
|
||||
} else {
|
||||
$assets->orderBy($sort_override, $order);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue