Added view link to asset tag, since some assets won't have names

This commit is contained in:
snipe
2015-04-02 15:40:41 -07:00
parent c88ce0d14d
commit e88a81141f
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
<?php
return array (
'app_version' => 'v1.2.6.1-184',
'hash_version' => 'v1.2.6.1-184-g766afde',
'app_version' => 'v1.2.6.1-185',
'hash_version' => 'v1.2.6.1-185-g33e7ce6',
);
+5 -1
View File
@@ -979,8 +979,12 @@ class AssetsController extends AdminController
{
return '<a title="'.$assets->name.'" href="hardware/'.$assets->id.'/view">'.$assets->name.'</a>';
})
->addColumn('asset_tag',function($assets)
{
return '<a title="'.$assets->asset_tag.'" href="hardware/'.$assets->id.'/view">'.$assets->asset_tag.'</a>';
})
->showColumns('asset_tag', 'serial')
->showColumns('serial')
->addColumn('model',function($assets)
{