Skip to content
Browse files

Merge branch 'master' of https://github.com/dhensby/DataObjectManager

  • Loading branch information...
2 parents 184f740 + 9de8e8b commit 257720fae50452bad7fc74e45898b9dd1706716b @unclecheese unclecheese committed Mar 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/DataObjectManager.php
View
2 code/DataObjectManager.php
@@ -231,7 +231,7 @@ protected function loadSourceFilter()
$SNG = singleton($this->sourceClass);
foreach(parent::Headings() as $field) {
if($SNG->hasDatabaseField($field->Name))
- $search[] = "UPPER($field->Name) LIKE '%".strtoupper($this->search)."%'";
+ $search[] = "UPPER($field->Name) LIKE '%".Convert::raw2sql(strtoupper($this->search))."%'";
}
$search_string = "(".implode(" OR ", $search).")";
}

0 comments on commit 257720f

Please sign in to comment.
Something went wrong with that request. Please try again.