Fixed bug with ComplexTableField inappropriately referencing a relation field that doesn't exist

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62998 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-09-24 05:24:51 +00:00
parent a9ad1e79c1
commit 9f05546c1e

View File

@ -386,8 +386,6 @@ JS;
foreach( $relations as $k => $v ) {
if( $v == $childClass )
return $k . 'ID';
else if( array_key_exists( $v, $classes ) )
return $classes[ $v ] . 'ID';
}
return false;
}