mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Fix fatal error when exporting a csv from a tablefield with a custom query
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@95108 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d782c44269
commit
f53a30f69c
@ -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…
x
Reference in New Issue
Block a user