From 69e54e72caeb30823da61366318b633292840271 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 31 Aug 2016 22:11:43 +0300 Subject: [PATCH] Working on history sidebar --- app/Libraries/HistoryUtils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Libraries/HistoryUtils.php b/app/Libraries/HistoryUtils.php index 6bad2156b3eb..79da4fb162d3 100644 --- a/app/Libraries/HistoryUtils.php +++ b/app/Libraries/HistoryUtils.php @@ -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;