Permalink
Browse files

Moving _setupRelationships back to beforeFind again

  • Loading branch information...
1 parent f598b90 commit 9c42fc202dfc53fba9974f221225b5df29b15cf3 Christoph Baur committed Jun 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/behaviors/site_filter.php
@@ -31,7 +31,7 @@ function beforeFind(&$model, $query) {
if ($this->settings[$model->alias]['enabled'] === false) {
return $query;
}
- $this->setup($model);
+ $this->_setupRelationships($model, $this->settings[$model->alias]);
$site = Sites::currentSite();
$sites = array_unique(array(Sites::ALL_SITES, $site['Site']['id']));

0 comments on commit 9c42fc2

Please sign in to comment.