From 9a91999adf273c0c78c1a41d35e479936939fc0f Mon Sep 17 00:00:00 2001 From: Marco Petrini Date: Tue, 5 Mar 2019 16:47:05 +0100 Subject: [PATCH] Fix Function ClearFilter --- behavior/Filterable.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/behavior/Filterable.php b/behavior/Filterable.php index bea5f57..0efa5a1 100644 --- a/behavior/Filterable.php +++ b/behavior/Filterable.php @@ -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); } } diff --git a/composer.json b/composer.json index 32c77c8..9341380 100644 --- a/composer.json +++ b/composer.json @@ -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",