Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixed SearchContextTest failure (from r93777)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93942 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 8ccbedc56d2a4855cb48aeb1d8cb09f8ee338999 1 parent 43dd296
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  search/filters/SearchFilter.php
View
2  search/filters/SearchFilter.php
@@ -128,7 +128,7 @@ function getDbName() {
// Todo: move to somewhere more appropriate, such as DataMapper, the magical class-to-be?
$candidateClass = $this->model;
while($candidateClass != 'DataObject') {
- if(singleton($candidateClass)->hasField($this->name)) break;
+ if(singleton($candidateClass)->hasDatabaseField($this->name)) break;
$candidateClass = get_parent_class($candidateClass);
}
if($candidateClass == 'DataObject') user_error("Couldn't find field $this->name in any of $this->model's tables.", E_USER_ERROR);
Please sign in to comment.
Something went wrong with that request. Please try again.