2010-01-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_db.php: In get_group_agents function, now agent's name search is not case sensitive. Fixes bug #3158022. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3742 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9ba7a5ae72
commit
f03af5cd39
|
@ -1,3 +1,9 @@
|
|||
2010-01-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_db.php: In get_group_agents function, now agent's name search is not case sensitive.
|
||||
|
||||
Fixes bug #3158022.
|
||||
|
||||
2010-01-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* godmode/reporting/visual_console_builder.editor.js: Label parameter is now coded
|
||||
|
|
|
@ -550,14 +550,14 @@ function get_group_agents ($id_group = 0, $search = false, $case = "lower", $noA
|
|||
unset ($search["disabled"]);
|
||||
if (isset ($search["string"])) {
|
||||
$string = safe_input ($search["string"]);
|
||||
$search_sql .= ' AND (nombre LIKE "%'.$string.'%" OR direccion LIKE "%'.$string.'%")';
|
||||
$search_sql .= ' AND (nombre COLLATE utf8_general_ci LIKE "%'.$string.'%" OR direccion LIKE "%'.$string.'%")';
|
||||
|
||||
unset ($search["string"]);
|
||||
}
|
||||
|
||||
if (isset ($search["name"])) {
|
||||
$name = safe_input ($search["name"]);
|
||||
$search_sql .= ' AND nombre LIKE "' . $name . '" ';
|
||||
$search_sql .= ' AND nombre COLLATE utf8_general_ci LIKE "' . $name . '" ';
|
||||
|
||||
unset ($search["name"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue