From: Brett Profitt Date: Tue, 24 Apr 2012 17:09:34 +0000 (-0700) Subject: Fixes #4409. Selecting distinct across entities.* and entity_relationships.id instead... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d7aa2b803949462c8939eb16f072ab53e174c85d;p=lorea%2Felgg.git Fixes #4409. Selecting distinct across entities.* and entity_relationships.id instead of r.* so entities loaded via elgg_get_entities_from_relationship() have the correct time_created. --- diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index fabe2d2d6..f50c4a485 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -290,7 +290,7 @@ function elgg_get_entities_from_relationship($options) { $options['selects'] = array(); } - $select = array('r.*'); + $select = array('r.id'); $options['selects'] = array_merge($options['selects'], $select); }