From 8c1cc8fcc7ff52814d13d0d453bc2fc4acefc9c7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 28 May 2009 05:03:59 +0000 Subject: [PATCH] MINOR Reverted r78055, it breaks TableListFieldTest and doesn't actually fix the bug it was supposed to (PHP segfaulting) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@78083 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index 1686bc6ec..a7d48130e 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -1228,7 +1228,7 @@ class TableListField_Item extends ViewableData { // This supports simple FieldName syntax if(strpos($fieldName,'.') === false) { - $value = $this->item->$fieldName; + $value = ($this->item->XML_val($fieldName)) ? $this->item->XML_val($fieldName) : $this->item->$fieldName; // This support the syntax fieldName = Relation.RelatedField } else { $fieldNameParts = explode('.', $fieldName) ;