diff options
| author | Brett Profitt <brett.profitt@gmail.com> | 2012-04-24 10:09:34 -0700 | 
|---|---|---|
| committer | Brett Profitt <brett.profitt@gmail.com> | 2012-04-24 10:09:34 -0700 | 
| commit | d7aa2b803949462c8939eb16f072ab53e174c85d (patch) | |
| tree | 5a9dfd70cdedee435e0c821f1e104f7f1a6a90ed | |
| parent | 6653c1f66bca719426965d12235f08b05deed187 (diff) | |
| download | elgg-d7aa2b803949462c8939eb16f072ab53e174c85d.tar.gz elgg-d7aa2b803949462c8939eb16f072ab53e174c85d.tar.bz2  | |
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.
| -rw-r--r-- | engine/lib/relationships.php | 2 | 
1 files changed, 1 insertions, 1 deletions
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);  	}  | 
