Skip to content

Commit

Permalink
remove master filtering in basic build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Oct 31, 2018
1 parent 688a81e commit a23b261
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Charcoal/Sitemap/Service/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,6 @@ protected function buildObject($class, $options, ViewableInterface $parent = nul
$loader->addOrders($orders);
}

// From the category / hierarchichal property
$category = ($obj instanceof CategoryInterface);
$hierarchical = ($obj instanceof HierarchicalInterface);
if ($hierarchical || $category) {
if ($parent) {
$loader->addFilter('master', $parent->id());
} else {
$loader->addFilter('master', '', ['operator' => 'IS NULL']);
}
}

// Loading
$list = $loader->load();

Expand Down

0 comments on commit a23b261

Please sign in to comment.