Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion formats/datatables/SearchPanes.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@

$qobj = $querySegmentList[$rootid];

$property = new DIProperty( DIProperty::newFromUserLabel( $printRequest->getCanonicalLabel() ) );
// lookup the property by the provided label, trim leading '-' to handle inverse properties
$property = new DIProperty( DIProperty::newFromUserLabel( ltrim( $printRequest->getCanonicalLabel(), '-' ) ) );

Check warning on line 130 in formats/datatables/SearchPanes.php

View check run for this annotation

Codecov / codecov/patch

formats/datatables/SearchPanes.php#L130

Added line #L130 was not covered by tests
$propTypeid = $property->findPropertyValueType();

if ( $isCategory ) {
Expand Down