[Vtigercrm-commits] [vtiger-commits] r9641 - /vtigercrm/branches/5.0.2/modules/Home/UnifiedSearch.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Oct 16 15:30:52 EDT 2006
Author: richie
Date: Mon Oct 16 13:30:47 2006
New Revision: 9641
Log:
* Modified to search all characters include other language characters
Modified:
vtigercrm/branches/5.0.2/modules/Home/UnifiedSearch.php
Modified: vtigercrm/branches/5.0.2/modules/Home/UnifiedSearch.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Home/UnifiedSearch.php (original)
+++ vtigercrm/branches/5.0.2/modules/Home/UnifiedSearch.php Mon Oct 16 13:30:47 2006
@@ -41,8 +41,10 @@
global $mod_strings;
$total_record_count = 0;
-//echo get_module_title("", "Search Results", true);
-if(isset($_REQUEST['query_string']) && preg_match("/[\w]/", $_REQUEST['query_string'])) {
+
+$query_string = trim($_REQUEST['query_string']);
+if(isset($query_string) && $query_string != '')//preg_match("/[\w]/", $_REQUEST['query_string']))
+{
//module => object
$object_array = Array(
@@ -71,7 +73,7 @@
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
- $search_val = $_REQUEST['query_string'];
+ $search_val = $query_string;
$search_module = $_REQUEST['search_module'];
getSearchModulesComboList($search_module);
More information about the vtigercrm-commits
mailing list