diff --git a/forms/Form.php b/forms/Form.php index b9819c966..c58d7f058 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -489,7 +489,7 @@ class Form extends ViewableData { if($name = $field->Name()) { if($o) { // this was failing with the field named 'Name' - $val = $object->getField($name); + $val = $object->__get($name); } else { $val = isset($object[$name]) ? $object[$name] : null; }