mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Null expected_checkin on user bulk checkin and delete
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0bc0a116aa
commit
28b0d8cf0f
|
@ -197,6 +197,7 @@ class BulkUsersController extends Controller
|
||||||
'status_id' => e(request('status_id')),
|
'status_id' => e(request('status_id')),
|
||||||
'assigned_to' => null,
|
'assigned_to' => null,
|
||||||
'assigned_type' => null,
|
'assigned_type' => null,
|
||||||
|
'expected_checkin' => null,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
|
@ -234,10 +235,10 @@ class BulkUsersController extends Controller
|
||||||
$item_id = $item->id;
|
$item_id = $item->id;
|
||||||
$logAction = new Actionlog();
|
$logAction = new Actionlog();
|
||||||
|
|
||||||
if($itemType == License::class){
|
if ($itemType == License::class){
|
||||||
$item_id = $item->license_id;
|
$item_id = $item->license_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
$logAction->item_id = $item_id;
|
$logAction->item_id = $item_id;
|
||||||
// We can't rely on get_class here because the licenses/accessories fetched above are not eloquent models, but simply arrays.
|
// We can't rely on get_class here because the licenses/accessories fetched above are not eloquent models, but simply arrays.
|
||||||
$logAction->item_type = $itemType;
|
$logAction->item_type = $itemType;
|
||||||
|
|
Loading…
Reference in a new issue