fixed: DataForm doesn't keep posted values properly when data fails validation

This commit is contained in:
Graham Knop 2008-10-02 15:12:50 +00:00
parent 62b45785bf
commit 8ac4215606
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
- fixed: some default assets have ids shorter than 22 characters
- fixed: failure when submitting a dataform that sends mail with an empty file field
- fixed: DataForm ignores height on textarea fields
- fixed: DataForm doesn't keep posted values properly when data fails validation
7.6.0
- added: users may now customize the post received page for the CS

View file

@ -651,7 +651,7 @@ sub getRecordTemplateVars {
for my $field (@fields) {
# need a copy
my $value;
if ($entry) {
if ($entryData) {
$value = $entryData->{ $field->{name} };
}
elsif (!$ignoreForm && defined (my $formValue = $self->session->form->process($field->{name}))) {