From 68859ff045b49f710cce227dfee4c1eee10c93c4 Mon Sep 17 00:00:00 2001 From: Drake Date: Tue, 7 Nov 2006 00:04:07 +0000 Subject: [PATCH] Fix preview on editing Posts. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Post.pm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index b394c5873..714bfa594 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -22,6 +22,7 @@ asset (automatic) that actually generates the feeds from them. - new: workflow activity and hooks for deleting exported files on trash, purge, and changeUrl + - fix: editing posts loses changes in preview 7.1.4 - Template variables in the main Survey Template were out of date in the diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index ce1978666..0bf20e057 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -1058,9 +1058,9 @@ sub www_edit { value=>$self->getValue("username") }); $var{isEdit} = 1; - $content = $self->getValue("content"); - $title = $self->getValue("title"); - $synopsis = $self->getValue("synopsis"); + $content = $self->session->form->process('content') || $self->getValue("content"); + $title = $self->session->form->process('title') || $self->getValue("title"); + $synopsis = $self->session->form->process('synopsis') || $self->getValue("synopsis"); } $var{'archive.form'} = WebGUI::Form::yesNo($self->session, { name=>"archive"