diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 69008602c..52b01abb5 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -46,6 +46,7 @@ - fix: new profile fields and new users not handling profile defaults right - fix: subscription dates - 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. All your existing Events Calendars will be migrated automatically. - Major change: password recovery is now based on profile fields rather than diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 372a827a2..aa775fbb0 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -1101,8 +1101,8 @@ sub www_edit { $var{'user.isModerator'} = $self->getThread->getParent->canModerate; $var{'user.isVisitor'} = ($self->session->user->userId eq '1'); $var{'visitorName.form'} = WebGUI::Form::text($self->session, { - name=>"visitorName", - value=>$self->getValue("visitorName") + name => "visitorName", + value => $self->session->form->process('visitorName') || $self->getValue("visitorName") }); for my $x (1..5) { my $userDefined = $self->session->form->process("userDefined".$x) || $self->getValue("userDefined".$x);