Fix visitor name disappearing on preview in CS.

This commit is contained in:
Drake 2006-12-06 17:37:57 +00:00
parent eb580be7f1
commit f3f2a2296b
2 changed files with 3 additions and 2 deletions

View file

@ -46,6 +46,7 @@
- fix: new profile fields and new users not handling profile defaults right - fix: new profile fields and new users not handling profile defaults right
- fix: subscription dates - fix: subscription dates
- fix: Default Rich Editor setting not rendering correctly - fix: Default Rich Editor setting not rendering correctly
- fix: visitor name disappearing on preview in CS
- The Events Calendar is now the new Calendar with some fun new features. - The Events Calendar is now the new Calendar with some fun new features.
All your existing Events Calendars will be migrated automatically. All your existing Events Calendars will be migrated automatically.
- Major change: password recovery is now based on profile fields rather than - Major change: password recovery is now based on profile fields rather than

View file

@ -1101,8 +1101,8 @@ sub www_edit {
$var{'user.isModerator'} = $self->getThread->getParent->canModerate; $var{'user.isModerator'} = $self->getThread->getParent->canModerate;
$var{'user.isVisitor'} = ($self->session->user->userId eq '1'); $var{'user.isVisitor'} = ($self->session->user->userId eq '1');
$var{'visitorName.form'} = WebGUI::Form::text($self->session, { $var{'visitorName.form'} = WebGUI::Form::text($self->session, {
name=>"visitorName", name => "visitorName",
value=>$self->getValue("visitorName") value => $self->session->form->process('visitorName') || $self->getValue("visitorName")
}); });
for my $x (1..5) { for my $x (1..5) {
my $userDefined = $self->session->form->process("userDefined".$x) || $self->getValue("userDefined".$x); my $userDefined = $self->session->form->process("userDefined".$x) || $self->getValue("userDefined".$x);