Skip to content

Commit

Permalink
cwrc#4: Solr bugfix for multiple content models
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed May 20, 2022
1 parent 89f8805 commit ad60099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion islandora_object_field.module
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function islandora_object_field_autocomplete($field, $search) {
foreach ($cmodels as $cmodel) {
$fq .= ($fq ? ' OR ' : '').'"info:fedora/'.$cmodel.'"';
}
if ($fq && count($cmodel) > 1) {
if ($fq && count($cmodels) > 1) {
$fq = '('.$fq.')';
}
if ($fq) {
Expand Down

0 comments on commit ad60099

Please sign in to comment.