Skip to content

Commit

Permalink
change get list to update list
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan DJ committed Aug 14, 2020
1 parent f3a0d7e commit d04df06
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/FilterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Heyday\ModelAdminFilter;

use SilverStripe\Core\Extension;
use SilverStripe\ORM\DataList;
use Heyday\ModelAdminFilter\FilterType;

/**
Expand Down Expand Up @@ -89,12 +90,10 @@ public function getFilterParams(): array
}

/**
* {@inheritdoc}
* Update model admin list based on param
*/
public function getList()
public function updateList(DataList $list)
{
$list = $this->owner->getList();

// get search params
$params = $this->getFilterParams();

Expand Down

0 comments on commit d04df06

Please sign in to comment.