mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 54455 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq ........ r54455 | gmunn | 2008-05-13 16:55:27 +1200 (Tue, 13 May 2008) | 1 line Password change fix, plus layout issues ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55072 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d344eef293
commit
d18509a3f5
@ -134,12 +134,14 @@ class ConfirmedPasswordField extends FormField {
|
||||
if($value['_Password'] || (!$value['_Password'] && !$this->canBeEmpty)) {
|
||||
$this->value = $value['_Password'];
|
||||
}
|
||||
if(isset($value['_PasswordFieldVisible'])){
|
||||
$this->children->fieldByName($this->Name() . '[_PasswordFieldVisible]')->setValue($value['_PasswordFieldVisible']);
|
||||
}
|
||||
} else {
|
||||
if($value || (!$value && !$this->canBeEmpty)) {
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function jsValidation() {
|
||||
|
Loading…
Reference in New Issue
Block a user