diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f77850d38b..0425912b22 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,5 +1,8 @@ 2013-12-05 Dario Rodriguez + * mobile/operation/modules.php: Added default value for tag + filter and added "All" option to modules group and tag filters + * mobile/operation/modules.php: Fixed a style bug related to filter explanation update on module search on mobile console. diff --git a/pandora_console/mobile/operation/modules.php b/pandora_console/mobile/operation/modules.php index 6a9dd73bcb..43d34c98f4 100644 --- a/pandora_console/mobile/operation/modules.php +++ b/pandora_console/mobile/operation/modules.php @@ -108,7 +108,8 @@ class Modules { $this->default_filters['group'] = true; $this->default_filters['status'] = true; $this->default_filters['free_search'] = true; - + $this->default_filters['tag'] = true; + $this->free_search = $system->getRequest('free_search', ''); if ($this->free_search != '') { $this->default = false; @@ -153,6 +154,7 @@ class Modules { } else { $this->default = false; + $this->default_filters['tag'] = false; } } @@ -215,6 +217,9 @@ class Modules { FROM tmodule_group ORDER BY name"); $module_groups = io_safe_output($module_groups); + + array_unshift($module_groups, array("id_mg" => 0, "name" => __("All"))); + $options = array( 'name' => 'module_group', 'title' => __('Module group'), @@ -227,6 +232,9 @@ class Modules { $ui->formAddSelectBox($options); $tags = tags_get_user_tags(); + + array_unshift($tags, __("All")); + $options = array( 'name' => 'tag', 'title' => __('Tag'),