Fixed a phpsefault

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@78055 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2009-05-28 03:54:54 +00:00 committed by Sam Minnee
parent 17b759ba12
commit cbac70612a

View File

@ -1228,7 +1228,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)) ? $this->item->XML_val($fieldName) : $this->item->$fieldName; $value = $this->item->$fieldName;
// This support the syntax fieldName = Relation.RelatedField // This support the syntax fieldName = Relation.RelatedField
} else { } else {
$fieldNameParts = explode('.', $fieldName) ; $fieldNameParts = explode('.', $fieldName) ;