From bcb0a289580ca00c912401d28778ec9a52b88b40 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Mon, 2 Jun 2014 13:09:59 -0400 Subject: [PATCH] Duplicate breadcrumbs in VuDL when using Solr connector fix. --- module/VuDL/src/VuDL/Connection/Solr.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/VuDL/src/VuDL/Connection/Solr.php b/module/VuDL/src/VuDL/Connection/Solr.php index fc0a803fd85..1f30c60c930 100644 --- a/module/VuDL/src/VuDL/Connection/Solr.php +++ b/module/VuDL/src/VuDL/Connection/Solr.php @@ -284,7 +284,9 @@ class Solr extends AbstractBase 'title' => $parents->hierarchy_parent_title[$i] ); } - $tree[$cid]['children'][] = $current; + if (!in_array($current, $tree[$cid]['children'])) { + $tree[$cid]['children'][] = $current; + } } } } -- GitLab