Saving bug fixing with when value equals undefined

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43537 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Romain Louis 2007-10-17 22:50:08 +00:00
parent cf7adf02da
commit c485a70354

View File

@ -21,8 +21,10 @@ class HasManyComplexTableField extends HasOneComplexTableField {
$items = array();
if( $list = $this->value[ $this->htmlListField ] )
if( $list = $this->value[ $this->htmlListField ] ) {
if( $list != 'undefined' )
$items = explode( ',', $list );
}
$saveDest->setByIDList( $items );
}