Skip to content

Commit

Permalink
Fixed bug with sort method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Aug 22, 2018
1 parent ceb5601 commit 6f44335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Pages/PublicationArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function fieldLabels($includerelations = true)
*/
public function getPublications()
{
return $this->sort(Publication::get()->filter('ParentID', $this->AllChildren()->column('ID') ?: null));
return $this->getSortedPublications(Publication::get()->filter('ParentID', $this->AllChildren()->column('ID') ?: null));
}

/**
Expand Down Expand Up @@ -337,7 +337,7 @@ public function getSortOrderOptions()
*
* @return SS_List
*/
public function sort(SS_List $list)
public function getSortedPublications(SS_List $list)
{
switch ($this->SortOrder) {
case self::SORT_DATE_ASC:
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/PublicationCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function getArchive()
*/
public function getPublications()
{
return $this->getArchive()->sort(Publication::get()->filter('ParentID', $this->ID));
return $this->getArchive()->getSortedPublications(Publication::get()->filter('ParentID', $this->ID));
}

/**
Expand Down

0 comments on commit 6f44335

Please sign in to comment.