Browse Source

Fixed incorrect handling of text-values

master
Artyom Beilis 14 years ago
parent
commit
2cda7aaf2a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      form.cpp

+ 2
- 2
form.cpp View File

@@ -744,7 +744,7 @@ bool password::validate()
return false;
}
if(password_to_check_) {
if(!password_to_check_->set() || password_to_check_->value()!=value()) {
if(!password_to_check_->set() || !set() || password_to_check_->value()!=value()) {
valid(false);
value("");
password_to_check_->value("");
@@ -769,7 +769,7 @@ bool regex_field::validate()
{
if(!text::validate())
return false;
valid(expression_->match(value()));
valid(set() && expression_->match(value()));
return valid();
}



Loading…
Cancel
Save