Permalink
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...
1 parent 43dd296 commit 8ccbedc56d2a4855cb48aeb1d8cb09f8ee338999 @chillu chillu committed Nov 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 8ccbedc

Please sign in to comment.