mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX still use the correct methods to get a value, even if we're generating a CSV ($xmlSafe = false) (from r96212)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98136 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4492109749
commit
298735506a
@ -1242,7 +1242,7 @@ class TableListField_Item extends ViewableData {
|
|||||||
|
|
||||||
// This supports simple FieldName syntax
|
// This supports simple FieldName syntax
|
||||||
if(strpos($fieldName,'.') === false) {
|
if(strpos($fieldName,'.') === false) {
|
||||||
$value = ($this->item->XML_val($fieldName) && $xmlSafe) ? $this->item->XML_val($fieldName) : $this->item->$fieldName;
|
$value = ($this->item->XML_val($fieldName) && $xmlSafe) ? $this->item->XML_val($fieldName) : $this->item->RAW_val($fieldName);
|
||||||
// This support the syntax fieldName = Relation.RelatedField
|
// This support the syntax fieldName = Relation.RelatedField
|
||||||
} else {
|
} else {
|
||||||
$fieldNameParts = explode('.', $fieldName) ;
|
$fieldNameParts = explode('.', $fieldName) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user