File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,10 @@ public static function createFromArray(array $array): self
671
671
*/
672
672
public static function getPathByField (string $ field )
673
673
{
674
- if (0 === strpos ($ field , 'indexed_metadata. ' )) {
674
+ if (
675
+ 0 === strpos ($ field , 'indexed_metadata. ' ) ||
676
+ 0 === strpos ($ field , '_user ' )
677
+ ) {
675
678
return $ field ;
676
679
}
677
680
Original file line number Diff line number Diff line change @@ -545,5 +545,6 @@ public function testPathByField()
545
545
$ this ->assertEquals ('indexed_metadata.another_id ' , Item::getPathByField ('another_id ' ));
546
546
$ this ->assertEquals ('indexed_metadata._field ' , Item::getPathByField ('_field ' ));
547
547
$ this ->assertEquals ('indexed_metadata._field ' , Item::getPathByField ('indexed_metadata._field ' ));
548
+ $ this ->assertEquals ('_user.lol ' , Item::getPathByField ('_user.lol ' ));
548
549
}
549
550
}
You can’t perform that action at this time.
0 commit comments