From 8fb991110ebdb1e3dd38baa40f91b83b442d152c Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 17 Jan 2018 12:10:28 -0800 Subject: [PATCH] Fixed #4652 - asset not correctly checking out to user on creation --- app/Observers/AssetObserver.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/Observers/AssetObserver.php b/app/Observers/AssetObserver.php index 7cac06ed29..df466d3753 100644 --- a/app/Observers/AssetObserver.php +++ b/app/Observers/AssetObserver.php @@ -42,13 +42,7 @@ class AssetObserver $logAction->log_meta = json_encode($changed); $logAction->logaction('update'); - } else { - - \Log::debug('Something else happened'); - \Log::debug($asset->getOriginal()['assigned_to'].' == '.$asset->getAttributes()['assigned_to']); - \Log::debug($asset->getOriginal()['next_audit_date'].' == '.$asset->getAttributes()['next_audit_date']); - \Log::debug($asset->getOriginal()['last_checkout'].' == '.$asset->getAttributes()['last_checkout']); - } + } }