Skip to content

Commit

Permalink
Fix call to non-existent method (when rel is many-one) in display parser
Browse files Browse the repository at this point in the history
  • Loading branch information
collectiveaccess committed Jan 25, 2023
1 parent ab203cf commit 88f1d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/Parsers/DisplayTemplateParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,8 @@ static private function _processChildren(SearchResult $pr_res, $po_nodes, array
}
} else {
$va_relationship_type_ids = $qr_rels->getAllFieldValues("{$t}.type_id");
$va_relationship_type_orientations = array_fill(0, sizeof($va_relationship_type_ids), $t::getRelationshipOrientationForTables($t, $ps_tablename));
$va_relationship_type_orientations = array_fill(0, sizeof($va_relationship_type_ids), method_exists($t, 'getRelationshipOrientationForTables') ? $t::getRelationshipOrientationForTables($t, $ps_tablename) : null);

}

} elseif($t_rel_instance->isRelationship()) {
Expand Down

0 comments on commit 88f1d4c

Please sign in to comment.