Skip to content

Commit

Permalink
Working on history sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Aug 31, 2016
1 parent db0c305 commit 69e54e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Libraries/HistoryUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public static function renderHtml()
$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;
Expand Down

0 comments on commit 69e54e7

Please sign in to comment.