Set the log to track the license_id instead of seat id

This commit is contained in:
snipe
2013-12-06 02:09:46 -05:00
parent 7bc9a53b13
commit 299393aa26
+2 -2
View File
@@ -295,7 +295,7 @@ class LicensesController extends AdminController {
if($licenseseat->save())
{
$logaction = new Actionlog();
$logaction->asset_id = $licenseseat->id;
$logaction->asset_id = $licenseseat->license_id;
$logaction->checkedout_to = $licenseseat->assigned_to;
$logaction->location_id = $assigned_to->location_id;
$logaction->asset_type = 'software';
@@ -366,7 +366,7 @@ class LicensesController extends AdminController {
// Was the asset updated?
if($licenseseat->save())
{
$logaction->asset_id = $licenseseat->id;
$logaction->asset_id = $licenseseat->license_id;
$logaction->location_id = NULL;
$logaction->asset_type = 'software';
$logaction->note = e(Input::get('note'));