Skip to content

Commit

Permalink
Merge pull request #18 from silverleague/bugfix/remove-double-paginator
Browse files Browse the repository at this point in the history
FIX Remove second paginator. The original is invisible, but will be fixed in the framework.
  • Loading branch information
robbieaverill authored Jan 31, 2017
2 parents fa5c75e + 992453a commit e55a33e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Admin/LogViewerAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use SilverLeague\LogViewer\Forms\GridField\GridFieldClearAllButton;
use SilverStripe\Admin\ModelAdmin;
use SilverStripe\Forms\GridField\GridFieldAddNewButton;
use SilverStripe\Forms\GridField\GridFieldPaginator;
use SilverStripe\View\Requirements;

/**
Expand Down Expand Up @@ -66,7 +65,6 @@ public function getEditForm($id = null, $fields = null)
$config = $gridField->getConfig();
$config->removeComponentsByType($config->getComponentByType(GridFieldAddNewButton::class));
$config->addComponent(new GridFieldClearAllButton('buttons-before-left'));
$config->addComponent(new GridFieldPaginator);

return $form;
}
Expand Down

0 comments on commit e55a33e

Please sign in to comment.