Reverted r78129

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78182 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-06-01 23:09:03 +00:00
parent 30517119d4
commit 10e0f6f09b

View File

@ -22,9 +22,6 @@ class FormTransformation extends Object {
// We iterate through each array simultaneously, looking at [0] of both, then [1] of both.
// This provides a more natural failover scheme.
if(!$field->class) {
user_error(get_class($field) . ' is missing a class property, please ensure constructors call parent', E_USER_ERROR);
}
$transNames = array_reverse(array_values(ClassInfo::ancestry($this->class)));
$fieldClasses = array_reverse(array_values(ClassInfo::ancestry($field->class)));