Skip to content

Commit

Permalink
FIX: $callerClass is undefined
Browse files Browse the repository at this point in the history
replaced with $this->dataClass
  • Loading branch information
christopherdarling committed Jul 16, 2015
1 parent bd316b9 commit a3201d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/DataQuery.php
Expand Up @@ -223,7 +223,7 @@ public function getFinalisedQuery($queriedColumns = null) {
if($this->dataClass != $baseClass) {
// Get the ClassName values to filter to
$classNames = ClassInfo::subclassesFor($this->dataClass);
if(!$classNames) user_error("DataList::create() Can't find data sub-classes for '$callerClass'");
if(!$classNames) user_error("DataList::create() Can't find data sub-classes for '{$this->dataClass}'");
$classNames = array_map(array(DB::getConn(), 'prepStringForDB'), $classNames);
$query->addWhere("\"$baseClass\".\"ClassName\" IN (" . implode(",", $classNames) . ")");
}
Expand Down

0 comments on commit a3201d6

Please sign in to comment.