mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
Fix php notice
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44243 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
68e9570c8d
commit
08c91feabc
@ -120,6 +120,7 @@ class EditableRadioField extends EditableFormField {
|
|||||||
function createField( $asFilter = false ) {
|
function createField( $asFilter = false ) {
|
||||||
$optionSet = $this->Options();
|
$optionSet = $this->Options();
|
||||||
$options = array();
|
$options = array();
|
||||||
|
$defaultOption = '';
|
||||||
|
|
||||||
if( $asFilter )
|
if( $asFilter )
|
||||||
$options['-1'] = '(Any)';
|
$options['-1'] = '(Any)';
|
||||||
@ -132,7 +133,7 @@ class EditableRadioField extends EditableFormField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// return radiofields
|
// return radiofields
|
||||||
return new OptionsetField( $this->Name, $this->Title, $options, $defaultOption );
|
return new OptionsetField($this->Name, $this->Title, $options, $defaultOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepopulate( $value ) {
|
function prepopulate( $value ) {
|
||||||
@ -182,4 +183,4 @@ protected function createOption( $name, $title, $id, $sort = 0, $isDefault = fal
|
|||||||
return $option->EditSegment();
|
return $option->EditSegment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user