Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed reference to fieldExists() on SearchFilter which was remo…

…ved from DataObject (from r93738)

git-svn-id: svn:// 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit a0092fb348e2669646042c481a31bb38ac1bea63 1 parent 3216c96
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  search/filters/SearchFilter.php
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)->fieldExists($this->name)) break;
+ if(singleton($candidateClass)->hasField($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.