mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Readonly changes : uppperCase Yes or No
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44406 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
70d41d5dc9
commit
60bedcfc1e
@ -65,7 +65,7 @@ HTML;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function performReadonlyTransformation() {
|
function performReadonlyTransformation() {
|
||||||
$field = new CheckboxField_Readonly($this->name, $this->title, $this->value ? 'yes' : 'no');
|
$field = new CheckboxField_Readonly($this->name, $this->title, $this->value ? 'Yes' : 'No');
|
||||||
$field->setForm($this->form);
|
$field->setForm($this->form);
|
||||||
return $field;
|
return $field;
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ class CheckboxField_Readonly extends ReadonlyField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setValue($val) {
|
function setValue($val) {
|
||||||
$this->value = ($val) ? 'yes' : 'no';
|
$this->value = ($val) ? 'Yes' : 'No';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user