Only add an update log message if the asset isn’t being checked in or out

This commit is contained in:
snipe
2017-07-08 03:38:39 -07:00
parent b02148f59e
commit 932e25ca9b
3 changed files with 18 additions and 9 deletions
+2 -2
View File
@@ -587,9 +587,9 @@ class AssetsController extends Controller
$settings = Setting::getSettings();
$this->authorize('view', $asset);
if (isset($asset->id)) {
if (isset($asset)) {
if ($asset->assetloc) {
if (!is_null($asset->assetloc)) {
$use_currency = $asset->assetloc->currency;
} else {