mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Removed comments
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
10ca7cffc3
commit
5d32c17a2e
|
@ -97,14 +97,11 @@ class AccessoriesController extends Controller
|
||||||
$accessories = $accessories->OrderSupplier($order);
|
$accessories = $accessories->OrderSupplier($order);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
\Log::error('switch: order by default');
|
|
||||||
$accessories = $accessories->orderBy($column_sort, $order);
|
$accessories = $accessories->orderBy($column_sort, $order);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//$accessories->orderBy($sort, $order);
|
|
||||||
|
|
||||||
$total = $accessories->count();
|
$total = $accessories->count();
|
||||||
$accessories = $accessories->skip($offset)->take($limit)->get();
|
$accessories = $accessories->skip($offset)->take($limit)->get();
|
||||||
return (new AccessoriesTransformer)->transformAccessories($accessories, $total);
|
return (new AccessoriesTransformer)->transformAccessories($accessories, $total);
|
||||||
|
|
Loading…
Reference in a new issue