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:
Romain Louis 2007-11-07 02:07:19 +00:00
parent 70d41d5dc9
commit 60bedcfc1e

View File

@ -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';
} }
} }
?> ?>