diff options
-rw-r--r-- | h-source/Application/Controllers/GenericController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 5e42b3c..059162a 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -505,8 +505,10 @@ class GenericController extends BaseController $data["search_string_form_value"] = strcmp($this->viewArgs['search_string'],Params::$nullQueryValue) === 0 ? "" : $this->viewArgs['search_string']; //set search_string to undef to clean the model name filter - $this->viewArgs['search_string'] = "undef"; - $data['clearViewStatus'] = Url::createUrl($this->viewArgs); + $temp = $this->viewArgs; + $temp['page'] = 1; + $temp['search_string'] = "undef"; + $data['clearViewStatus'] = Url::createUrl($temp); $this->append($data); |