mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX fixed csv export in MemberTableField by checking for valid database columns when building SELECT statement
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50945 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8e884437fe
commit
02064ce611
@ -391,7 +391,7 @@ JS
|
|||||||
|
|
||||||
// Add more selected fields if they are from joined table.
|
// Add more selected fields if they are from joined table.
|
||||||
foreach($this->FieldList() as $k=>$title){
|
foreach($this->FieldList() as $k=>$title){
|
||||||
if(!singleton($this->sourceClass)->hasField($k))
|
if(singleton($this->sourceClass)->hasDatabaseField($k))
|
||||||
$query->select[] = $k;
|
$query->select[] = $k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user