mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
cf7adf02da
commit
c485a70354
@ -21,8 +21,10 @@ class HasManyComplexTableField extends HasOneComplexTableField {
|
||||
|
||||
$items = array();
|
||||
|
||||
if( $list = $this->value[ $this->htmlListField ] )
|
||||
$items = explode( ',', $list );
|
||||
if( $list = $this->value[ $this->htmlListField ] ) {
|
||||
if( $list != 'undefined' )
|
||||
$items = explode( ',', $list );
|
||||
}
|
||||
|
||||
$saveDest->setByIDList( $items );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user