Index: trunk/core/units/general/helpers/search_helper.php =================================================================== diff -u -N -r6832 -r6833 --- trunk/core/units/general/helpers/search_helper.php (.../search_helper.php) (revision 6832) +++ trunk/core/units/general/helpers/search_helper.php (.../search_helper.php) (revision 6833) @@ -282,7 +282,8 @@ $grid_name = $this->Application->GetVar('grid_name'); // update "custom filter" with values from submit: begin - $custom_filters = $this->Application->RecallVar($event->getPrefixSpecial().'_custom_filter'); + $view_name = $this->Application->RecallVar($event->getPrefixSpecial().'_current_view'); + $custom_filters = $this->Application->RecallPersistentVar($event->getPrefixSpecial().'_custom_filter.'.$view_name); if ($custom_filters) { $custom_filters = unserialize($custom_filters); $custom_filter = isset($custom_filters[$grid_name]) ? $custom_filters[$grid_name] : Array (); @@ -327,7 +328,7 @@ if (!$custom_filter) { // in case when no filters specified, there are nothing to process - $this->Application->StoreVar($event->getPrefixSpecial().'_custom_filter', serialize($custom_filters) ); + $this->Application->StorePersistentVar($event->getPrefixSpecial().'_custom_filter.'.$view_name, serialize($custom_filters) ); return false; } @@ -344,7 +345,7 @@ } $custom_filters[$grid_name] = $custom_filter; - $this->Application->StoreVar($event->getPrefixSpecial().'_custom_filter', serialize($custom_filters) ); + $this->Application->StorePersistentVar($event->getPrefixSpecial().'_custom_filter.'.$view_name, serialize($custom_filters) ); return $custom_filter; } @@ -494,7 +495,8 @@ $this->Application->RemoveVar($event->getPrefixSpecial().'_search_filter'); $this->Application->RemoveVar($event->getPrefixSpecial().'_search_keyword'); - $this->Application->RemoveVar($event->getPrefixSpecial().'_custom_filter'); + $view_name = $this->Application->RecallVar($event->getPrefixSpecial().'_current_view'); + $this->Application->RemovePersistentVar($event->getPrefixSpecial().'_custom_filter.'.$view_name); }