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:
Ingo Schommer 2008-03-12 09:23:53 +00:00
parent 8e884437fe
commit 02064ce611

View File

@ -391,7 +391,7 @@ JS
// Add more selected fields if they are from joined table.
foreach($this->FieldList() as $k=>$title){
if(!singleton($this->sourceClass)->hasField($k))
if(singleton($this->sourceClass)->hasDatabaseField($k))
$query->select[] = $k;
}
}