mirror of
https://github.com/snipe/snipe-it.git
synced 2024-09-20 07:47:41 -07:00
asset_id is not allowed to be null in asset_log according to db schema. 0 it out here to make sqlite happy.
This commit is contained in:
parent
0fa82743a1
commit
4af5cdd64f
|
@ -313,6 +313,7 @@ class AccessoriesController extends Controller
|
|||
|
||||
$logaction = new Actionlog();
|
||||
$logaction->accessory_id = $accessory->id;
|
||||
$logaction->asset_id = 0;
|
||||
$logaction->checkedout_to = $accessory->assigned_to;
|
||||
$logaction->asset_type = 'accessory';
|
||||
$logaction->location_id = $user->location_id;
|
||||
|
|
|
@ -319,6 +319,7 @@ class ConsumablesController extends Controller
|
|||
$logaction->consumable_id = $consumable->id;
|
||||
$logaction->checkedout_to = $consumable->assigned_to;
|
||||
$logaction->asset_type = 'consumable';
|
||||
$logaction->asset_id = 0;
|
||||
$logaction->location_id = $user->location_id;
|
||||
$logaction->user_id = Auth::user()->id;
|
||||
$logaction->note = e(Input::get('note'));
|
||||
|
|
Loading…
Reference in a new issue