mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
MINOR: Remove redundant setDisabled() methods - this method already exists in FormField. Fixes E_STRICT notice.
This commit is contained in:
parent
75c5134bc9
commit
f811103243
@ -133,11 +133,6 @@ class CheckboxSetField extends OptionsetField {
|
||||
return $this->customise($properties)->renderWith($this->getTemplate());
|
||||
}
|
||||
|
||||
function setDisabled($val) {
|
||||
$this->disabled = $val;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default selections, regardless of the {@link setValue()} settings.
|
||||
* Note: Items marked as disabled through {@link setDisabledItems()} can still be
|
||||
|
@ -238,12 +238,4 @@ class DropdownField extends FormField {
|
||||
$field->setReadonly(true);
|
||||
return $field;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set form being disabled
|
||||
*/
|
||||
function setDisabled($disabled = true) {
|
||||
$this->disabled = $disabled;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user