Skip to content

Commit

Permalink
Merge pull request #111 from andig/fix-move-aggregator
Browse files Browse the repository at this point in the history
Fix middleware error when adding group with children to aggregator
  • Loading branch information
andig committed Mar 19, 2014
2 parents 1ee6bfb + d19f2c1 commit a0a77cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Volkszaehler/Model/Aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function contains(Entity $entity, $recursive = FALSE) {

if ($recursive) {
foreach ($this->children as $child) {
if ($child->contains($entity, $recursive)) {
if ($child instanceof Aggregator && $child->contains($entity, $recursive)) {
return TRUE;
}
}
Expand Down

0 comments on commit a0a77cf

Please sign in to comment.