From 4ad18c3bf051348ea6fb36474c8724a2ae4ae9e7 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 3 Apr 2012 16:21:32 +0000 Subject: fixed a bug in GenericController::catalogue - it now sends to page 1 when someone uses the model name filter --- h-source/Application/Controllers/GenericController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'h-source/Application') 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); -- cgit v1.2.3