mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fix fatal error when exporting a csv from a tablefield with a custom query (from r95108)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95634 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b52e49dee7
commit
0d1f39ff88
@ -491,10 +491,11 @@ JS
|
||||
function getCsvQuery() {
|
||||
$baseClass = ClassInfo::baseDataClass($this->sourceClass);
|
||||
if($this->customCsvQuery || $this->customQuery) {
|
||||
$query = $this->customCsvQuery;
|
||||
$query = $this->customCsvQuery ? $this->customCsvQuery : $this->customQuery;
|
||||
} else {
|
||||
$query = singleton($this->sourceClass)->extendedSQL($this->sourceFilter(), $this->sourceSort, null, $this->sourceJoin);
|
||||
}
|
||||
|
||||
return clone $query;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user