mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-05 19:07:30 -08:00
Merge branch 'develop'
This commit is contained in:
commit
38dd03b5ad
|
@ -1179,6 +1179,9 @@ class AssetsController extends Controller
|
||||||
$user = User::find(e(Input::get('assigned_to')));
|
$user = User::find(e(Input::get('assigned_to')));
|
||||||
$admin = Auth::user();
|
$admin = Auth::user();
|
||||||
|
|
||||||
|
if (!is_array(Input::get('selected_assets'))) {
|
||||||
|
return redirect()->route('hardware/bulkcheckout')->withInput()->with('error', trans('admin/hardware/message.checkout.no_assets_selected'));
|
||||||
|
}
|
||||||
$asset_ids = array_filter(Input::get('selected_assets'));
|
$asset_ids = array_filter(Input::get('selected_assets'));
|
||||||
|
|
||||||
if ((Input::has('checkout_at')) && (Input::get('checkout_at')!= date("Y-m-d"))) {
|
if ((Input::has('checkout_at')) && (Input::get('checkout_at')!= date("Y-m-d"))) {
|
||||||
|
|
|
@ -62,7 +62,8 @@ return array(
|
||||||
'error' => 'Asset was not checked out, please try again',
|
'error' => 'Asset was not checked out, please try again',
|
||||||
'success' => 'Asset checked out successfully.',
|
'success' => 'Asset checked out successfully.',
|
||||||
'user_does_not_exist' => 'That user is invalid. Please try again.',
|
'user_does_not_exist' => 'That user is invalid. Please try again.',
|
||||||
'not_available' => 'That asset is not available for checkout!'
|
'not_available' => 'That asset is not available for checkout!',
|
||||||
|
'no_assets_selected' => 'You must select at least one asset from the list'
|
||||||
),
|
),
|
||||||
|
|
||||||
'checkin' => array(
|
'checkin' => array(
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($licensedto->asset_id)
|
@if ($licensedto->asset)
|
||||||
@can('view', $licensedto->asset)
|
@can('view', $licensedto->asset)
|
||||||
<a href="{{ route('hardware.show', $licensedto->asset_id) }}">
|
<a href="{{ route('hardware.show', $licensedto->asset_id) }}">
|
||||||
{{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
|
{{ $licensedto->asset->name }} {{ $licensedto->asset->asset_tag }}
|
||||||
|
|
Loading…
Reference in a new issue