mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX added isset option to if statement to stop errors
This commit is contained in:
parent
daac87acee
commit
0d60f6326a
@ -43,7 +43,7 @@ class EditableDropdown extends EditableFormField {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data[$option->ID])) {
|
if(isset($option) && isset($data[$option->ID])) {
|
||||||
$option->setField('Default', isset($data['Default']) ? ($option->ID == $data['Default']) : false);
|
$option->setField('Default', isset($data['Default']) ? ($option->ID == $data['Default']) : false);
|
||||||
$option->populateFromPostData( $data[$option->ID] );
|
$option->populateFromPostData( $data[$option->ID] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user