diff --git a/formats/datatables/SearchPanes.php b/formats/datatables/SearchPanes.php index 9c8b47c85..e6089b58d 100644 --- a/formats/datatables/SearchPanes.php +++ b/formats/datatables/SearchPanes.php @@ -126,7 +126,8 @@ private function getPanesOptions( $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(), '-' ) ) ); $propTypeid = $property->findPropertyValueType(); if ( $isCategory ) {