Skip to content

A free open source IT asset/license management system

Costometic cleanup

snipe3aa7c607651b
diff --git a/app/Models/Actionlog.php b/app/Models/Actionlog.php
index 346fb9143d..37350ab7a8 100755
--- a/app/Models/Actionlog.php
+++ b/app/Models/Actionlog.php
@@ -36,7 +36,7 @@ class Actionlog extends Model implements ICompanyableChild
public function itemType()
{
- // dd($this);
+
if($this->item_type == AssetModel::class) {
return "model";
}
@@ -45,7 +45,6 @@ class Actionlog extends Model implements ICompanyableChild
public function uploads()
{
-
return $this->morphTo('item')
->where('action_type', '=', 'uploaded')
->withTrashed();