Skip to content

Commit

Permalink
Check for subclasses of ElementpageExtension as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Leapfrognz committed Nov 8, 2015
2 parents 06e7e16 + cc1bacf commit e860730
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/models/ElementalArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ public function Elements() {

$list = new HasManyList('BaseElement', $result->getForeignKey());
$list->setDataModel($this->model);
<<<<<<< HEAD
$list->sort('Sort ASC');

=======
$list = $list->filter('Enabled', 1);
$list = $list->sort('Sort ASC');

>>>>>>> cc1bacfcf799bd97344a8219f8850b3a15cce8f7
$list = $list->forForeignID($this->ID);

return $list;
Expand Down

0 comments on commit e860730

Please sign in to comment.