Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from sarce/patch-2
Browse files Browse the repository at this point in the history
When doing a findById() call, the function returned an integer breaking the conditions inside generateQuery().
  • Loading branch information
lorenzo committed Jan 14, 2013
2 parents 4001367 + 9c1d85f commit 50e40e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Datasource/ElasticSource.php
Expand Up @@ -965,7 +965,7 @@ public function afterParseConditions(Model $Model, $filters = array()) {
} elseif (!empty($filters[0])) {
$filters = $filters[0];
if (!empty($filters['term']['id']) && count($filters['term']['id']) === 1) {
return $filters['term']['id'][0];
$filters['term']['id'] = $filters['term']['id'][0];
}
}
return $filters;
Expand Down

0 comments on commit 50e40e5

Please sign in to comment.