Skip to content

Commit

Permalink
DataGrid: fixed session namespace (non)uniqueness [Closes #15]
Browse files Browse the repository at this point in the history
  • Loading branch information
uestla committed Nov 17, 2015
1 parent 2210d7e commit 2fac8b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/TwiGrid/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public function __construct(Nette\Http\Session $s)
{
parent::__construct();
$this->session = $s;
$this->sessNamespace = __CLASS__ . '-' . $this->name;
}


Expand All @@ -139,8 +138,8 @@ protected function attached($presenter)
{
$this->build();
parent::attached($presenter);
!isset($this->presenter->payload->twiGrid)
&& ($this->presenter->payload->twiGrid['forms'] = $this->presenter->payload->twiGrid = array());
$this->sessNamespace = __CLASS__ . '-' . $this->name;
!isset($this->presenter->payload->twiGrid) && ($this->presenter->payload->twiGrid['forms'] = $this->presenter->payload->twiGrid = array());
}


Expand Down

0 comments on commit 2fac8b8

Please sign in to comment.