Skip to content
Snippets Groups Projects
Commit 555a4fe2 authored by Dorian Merz's avatar Dorian Merz Committed by Frank Morgner
Browse files

refs #14719 - bugfixes getRID() method at SolrDefaultFincTrait

* bugfixes ID lookup
* now uses correct value retrieval method
parent fbb3d975
No related merge requests found
......@@ -857,7 +857,11 @@ trait SolrDefaultFincTrait
&& !empty($records)
) {
foreach ($records as $record) {
$retval[$record->getRID()] = $record->getUniqueID();
// we SHOULD use the immediate field values here since the
// above query yields record stubs of type VuFind\RecordDriver\SolrDefault
// which normally not allow for specialized functions e.g. SolrMarcFinc::getRID
// the specified fields, however, will always be set
$retval[$record->fields['record_id']] = $record->fields['id'];
}
}
......
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