From da24d60267176defa920066ac9d9d8da555cba46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de> Date: Wed, 2 Nov 2016 16:06:44 +0100 Subject: [PATCH] refs #9044: * fixed php notice in getHierarchyParentID --- module/finc/src/finc/RecordDriver/SolrMarcFincTrait.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/finc/src/finc/RecordDriver/SolrMarcFincTrait.php b/module/finc/src/finc/RecordDriver/SolrMarcFincTrait.php index 96e0e4761c0..511590bf92a 100644 --- a/module/finc/src/finc/RecordDriver/SolrMarcFincTrait.php +++ b/module/finc/src/finc/RecordDriver/SolrMarcFincTrait.php @@ -1455,10 +1455,8 @@ trait SolrMarcFincTrait $query = 'record_id:' . $matches[2]; $result = $this->searchService->search('Solr', new Query($query)); if (count($result) === 0) { - $this->debug('Could not retrieve id for record with ' - . $solrField . ":" . $solrValue - ); - return $solrValue; + $this->debug('Could not retrieve id for record with ' . $query); + return $value; } return current($result->getRecords())->getUniqueId(); } -- GitLab