Filter action log for hardware
This commit is contained in:
@@ -63,7 +63,7 @@ class Asset extends Elegant {
|
||||
*/
|
||||
public function assetlog()
|
||||
{
|
||||
return $this->hasMany('Actionlog','asset_id')->orderBy('added_on', 'desc');
|
||||
return $this->hasMany('Actionlog','asset_id')->where('asset_type','=','hardware')->orderBy('added_on', 'desc');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user