mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 13:48:37 +02:00
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:
parent
a9ad1e79c1
commit
9f05546c1e
@ -386,8 +386,6 @@ JS;
|
|||||||
foreach( $relations as $k => $v ) {
|
foreach( $relations as $k => $v ) {
|
||||||
if( $v == $childClass )
|
if( $v == $childClass )
|
||||||
return $k . 'ID';
|
return $k . 'ID';
|
||||||
else if( array_key_exists( $v, $classes ) )
|
|
||||||
return $classes[ $v ] . 'ID';
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user