Permalink
Browse files

BUGFIX still use the correct methods to get a value, even if we're ge…

…nerating a CSV ($xmlSafe = false) (from r96212) (from r98136)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102608 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 4f461e4 commit be4c42f9d0abd6792e291e7ec1464a5dd9bbae60 @chillu chillu committed Apr 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TableListField.php
View
@@ -1246,7 +1246,7 @@ function Fields($xmlSafe = true) {
// This supports simple FieldName syntax
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
} else {
$fieldNameParts = explode('.', $fieldName) ;

0 comments on commit be4c42f

Please sign in to comment.