Don't incldue deleted in history

This commit is contained in:
Hillel Coren 2018-02-20 10:55:38 +02:00
parent e423475195
commit 9ab51ac67f

View File

@ -96,6 +96,10 @@ class HistoryUtils
return;
}
if ($entity->is_deleted) {
return;
}
$object = static::convertToObject($entity);
$history = Session::get(RECENTLY_VIEWED) ?: [];
$accountHistory = isset($history[$entity->account_id]) ? $history[$entity->account_id] : [];