diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:07:50 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-02-18 00:07:50 +0000 |
commit | 14691cd854be3e9ee272c9619a6368c83d72267b (patch) | |
tree | 89215d53db8d6f01bb24a5c1d30d9dd4c8d7a5b9 /h-source/Application/Controllers/GenericController.php | |
parent | a2c0b2c4f80463a94e2dd87b59f193ab3aa925eb (diff) |
upload new EasyGiant library and added added a new filter for the model name (part 2)
Diffstat (limited to 'h-source/Application/Controllers/GenericController.php')
-rw-r--r-- | h-source/Application/Controllers/GenericController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 2381866..117845a 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -501,7 +501,13 @@ class GenericController extends BaseController $data['topNotice'] = $this->getModule(array('devices',$this->controller,'catalogue')); $data['popupLabel'] = $this->mod->getPopupLabel($this->viewArgs); + + $data["search_string_form_value"] = strcmp($this->viewArgs['search_string'],Params::$nullQueryValue) === 0 ? gtext("model name") : $this->viewArgs['search_string']; + //set search_string to undef to clean the model name filter + $this->viewArgs['search_string'] = "undef"; + $this->buildStatus(); + $this->append($data); $this->loadViewAll('catalogue'); |