Skip to content

Commit

Permalink
Bug fixes (#28)
Browse files Browse the repository at this point in the history
Fix 3.1 compatibility issues with PaginatedList and $Title
  • Loading branch information
gheggie authored and silbinarywolf committed Sep 14, 2017
1 parent 3893726 commit fd19c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/form/ListFilterCompositeField.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct(ListFilterBase $filter) {
* @return string
*/
public function getLegend() {
return $this->getTitle();
return $this->Title();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion code/form/ListFilterForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function ShowingMessage(SS_List $list = null) {
$data = array();
if ($list instanceof PaginatedList) {
$start = 0;
$request = $list->getRequest();
$request = $list->hasMethod('getRequest') ? $list->getRequest() : $this->controller->getRequest();
if ($request) {
$getVarName = $list->getPaginationGetVar();
if($request && isset($request[$getVarName]) && $request[$getVarName] > 0) {
Expand Down

0 comments on commit fd19c04

Please sign in to comment.