Skip to content
Snippets Groups Projects
Commit da24d602 authored by André Lahmann's avatar André Lahmann
Browse files

refs #9044:

* fixed php notice in getHierarchyParentID
parent b3795a13
No related merge requests found
...@@ -1455,10 +1455,8 @@ trait SolrMarcFincTrait ...@@ -1455,10 +1455,8 @@ trait SolrMarcFincTrait
$query = 'record_id:' . $matches[2]; $query = 'record_id:' . $matches[2];
$result = $this->searchService->search('Solr', new Query($query)); $result = $this->searchService->search('Solr', new Query($query));
if (count($result) === 0) { if (count($result) === 0) {
$this->debug('Could not retrieve id for record with ' $this->debug('Could not retrieve id for record with ' . $query);
. $solrField . ":" . $solrValue return $value;
);
return $solrValue;
} }
return current($result->getRecords())->getUniqueId(); return current($result->getRecords())->getUniqueId();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment