From 1d239bb7e060139b4f506ba177a475f5e964d581 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 1 Jun 2006 02:11:57 +0000 Subject: [PATCH] fix 6.99 nothing write to assetData.groupIdView & assetData.groupIdEdit --- docs/changelog/6.x.x.txt | 1 + lib/WebGUI/Asset/Post.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 076dcf7e0..351a55543 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -27,6 +27,7 @@ - All assets now have an autoGenerateForms property just like wobjects per the rough edges discussions in Community IRC. - fix: not set UTF-8 in setup page + - fix: 6.99 nothing write to assetData.groupIdView & assetData.groupIdEdit 6.99.2 - fix - demo.plainblack.com getting started diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 193877c90..bd187e666 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -80,8 +80,6 @@ sub addRevision { $newSelf->update({ isHidden => 1, dateUpdated=>$now, - groupIdView=>$newSelf->getThread->getParent->get("groupIdView"), - groupIdEdit=>$newSelf->getThread->getParent->get("groupIdEdit"), }); $newSelf->getThread->unmarkRead; return $newSelf; @@ -697,6 +695,8 @@ sub postProcess { $data{content} .= "

\n\n --- (".$i18n->get('Edited_on')." ".$self->session->datetime->epochToHuman(undef,"%z %Z [GMT%O]")." ".$i18n->get('By')." ".$user->profileField("alias").") --- \n

"; } $data{url} = $self->fixUrl($self->getThread->get("url")."/1") if ($self->isReply && $self->isNew); + $data{groupIdView} = $self->getThread->getParent->get("groupIdView"); + $data{groupIdEdit} = $self->getThread->getParent->get("groupIdEdit"); $self->update(\%data); my $size = 0; my $storage = $self->getStorageLocation;