Skip to content

Commit

Permalink
Moving _setupRelationships back to beforeFind again
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Baur committed Jun 9, 2011
1 parent f598b90 commit 9c42fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/behaviors/site_filter.php
Expand Up @@ -31,7 +31,7 @@ function beforeFind(&$model, $query) {
if ($this->settings[$model->alias]['enabled'] === false) { if ($this->settings[$model->alias]['enabled'] === false) {
return $query; return $query;
} }
$this->setup($model); $this->_setupRelationships($model, $this->settings[$model->alias]);
$site = Sites::currentSite(); $site = Sites::currentSite();
$sites = array_unique(array(Sites::ALL_SITES, $site['Site']['id'])); $sites = array_unique(array(Sites::ALL_SITES, $site['Site']['id']));


Expand Down

0 comments on commit 9c42fc2

Please sign in to comment.