Case insensitive searches for the schema views

This commit is contained in:
Mark Crane
2013-07-09 20:34:44 +00:00
parent 89f7c5f76c
commit d1b6caabb7
2 changed files with 4 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ else {
}
//set http get variables to php variables
$search_all = check_str($_GET["search_all"]);
$search_all = strtolower(check_str($_GET["search_all"]));
$schema_uuid = check_str($_GET["schema_uuid"]);
if (strlen($_GET["data_row_uuid"])>0) { //update
$data_row_uuid = check_str($_GET["data_row_uuid"]);
@@ -406,7 +406,7 @@ else {
}
}
else {
$sql .= "and data_field_value like '%$search_all%' )\n";
$sql .= "and lower(data_field_value) like '%$search_all%' )\n";
}
}
}

View File

@@ -45,7 +45,7 @@ if (strlen($_GET["id"]) > 0) {
if (strlen($_GET["data_parent_row_uuid"])>0) {
$data_parent_row_uuid = $_GET["data_parent_row_uuid"];
}
$search_all = check_str($_GET["search_all"]);
$search_all = strtolower(check_str($_GET["search_all"]));
}
//used for changing the order
@@ -142,7 +142,7 @@ if (strlen($_GET["id"]) > 0) {
}
}
else {
$sql .= "and data_field_value like '%$search_all%' \n";
$sql .= "and lower(data_field_value) like '%$search_all%' \n";
}
}
else {