Skip to content

Commit

Permalink
Merge pull request #98 from smartemailing/fix-nette3.0
Browse files Browse the repository at this point in the history
Fixed persistent parameters
  • Loading branch information
hrach authored Apr 10, 2020
2 parents d5dd094 + 7de66f0 commit 796299e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Datagrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@

namespace Nextras\Datagrid;

use Nette;
use Nette\Application\UI;
use Nette\Bridges\ApplicationLatte\Template;
use Nette\ComponentModel\IComponent;
use Nette\Forms\Container;
use Nette\Forms\Controls\Button;
use Nette\Forms\Controls\Checkbox;
use Nette\Utils\Html;
use Nette\Utils\Paginator;
use Nette\Localization\ITranslator;
Expand Down Expand Up @@ -326,15 +325,14 @@ function invalidateRow($primaryValue)


/*******************************************************************************/


protected function attached(IComponent $presenter): void
protected function validateParent(Nette\ComponentModel\IContainer $parent): void
{
parent::attached($presenter);
$this->filterDataSource = $this->filter;
parent::validateParent($parent);
$this->monitor(UI\Presenter::class, function () {
$this->filterDataSource = $this->filter;
});
}


protected function getData($key = null)
{
if (!$this->data) {
Expand Down

0 comments on commit 796299e

Please sign in to comment.