Skip to content

Commit

Permalink
Fix Function ClearFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
fr00ller committed Mar 5, 2019
1 parent f2a1884 commit 9a91999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion behavior/Filterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function clearAllFilters()
$session = \Yii::$app->session;
$session_array = iterator_to_array($session->getIterator());
foreach ($session_array as $k => $s) {
if (strpos($key, $this->tablename) !== false) {
if (strpos($k, $this->tablename) !== false) {
$session->remove($key);
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Alternative Gii generator for Yii2 framework",
"keywords": ["yii2", "theme", "helper", "assets", "gii"],
"license": "BSD-3-Clause",
"version": "1.0.5",
"version": "1.0.6",
"authors": [
{
"name": "Marco Petrini",
Expand Down

0 comments on commit 9a91999

Please sign in to comment.