Permalink
Browse files

* Default right hand side of join_path should be key_field

git-svn-id: https://svn.eprints.org/eprints/trunk/system@7526 9491667e-5006-0410-a446-efbe8990b998
  • Loading branch information...
timbrody committed Mar 22, 2012
1 parent 54eb4ee commit 951d5e53371475222f6520dec0adb08f606bbb8c
@@ -2,6 +2,7 @@
$c->{search}->{advanced} =
{
search_fields => [
+ { meta_fields => [ "shelves.shelfid" ] },
{ meta_fields => [ "documents" ] },
{ meta_fields => [ "title" ] },
{ meta_fields => [ "creators_name" ] },
@@ -260,8 +260,9 @@ sub join_keys
{
my( $left, $right ) = (
$join_path->[0]->[0],
- $field,
+ $join_path->[1]->[0],
);
+ $right = $target->key_field if !defined $right;
if( $left->isa( "EPrints::MetaField::Subobject" ) )
{
$right = $target->field( $left->property( "dataobj_fieldname" ) );

0 comments on commit 951d5e5

Please sign in to comment.