diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-04-03 16:21:32 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-04-03 16:21:32 +0000 |
commit | 4ad18c3bf051348ea6fb36474c8724a2ae4ae9e7 (patch) | |
tree | 8c2773adb917df271a2bf033b15bc67a73ba5303 | |
parent | 6c46783c344d72bf6f96e071b9c5cb0c3836d0c5 (diff) |
fixed a bug in GenericController::catalogue - it now sends to page 1 when someone uses the model name filter
-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); |