Working on history sidebar

This commit is contained in:
Hillel Coren 2016-08-31 22:11:43 +03:00
parent db0c305b4f
commit 69e54e72ca

View File

@ -72,8 +72,9 @@ class HistoryUtils
$lastClientId = false;
$clientMap = [];
$str = '';
$history = Session::get(RECENTLY_VIEWED, []);
foreach (Session::get(RECENTLY_VIEWED) as $item)
foreach ($history as $item)
{
if ($item->entityType == ENTITY_CLIENT && isset($clientMap[$item->client_id])) {
continue;