From 924cc0de3a9028469aabe02a25afea5df4098335 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 9 Feb 2010 14:48:06 -0800 Subject: [PATCH] Swap lastPostId and lastPostDate arguments when archiving a thread. Fixes bug #11398 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Post/Thread.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 29d74a54d..a0fa790a0 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed #11396: WebGUI Workflow Cache Error. - fixed #11393: Map template variables missing - fixed #11336: Duplicate Version Tag Created. + - fixed #11398: Recent post information keeps disappearing from my forums 7.8.11 - fixed #11362: Unable to checkout with ITransact plugin diff --git a/lib/WebGUI/Asset/Post/Thread.pm b/lib/WebGUI/Asset/Post/Thread.pm index 5c86e5337..8196683bb 100644 --- a/lib/WebGUI/Asset/Post/Thread.pm +++ b/lib/WebGUI/Asset/Post/Thread.pm @@ -51,7 +51,7 @@ sub archive { $post->setStatusArchived; } my $cs = $self->getParent; - $cs->incrementThreads($cs->get("lastPostId"), $cs->get("lastPostDate")); + $cs->incrementThreads($cs->get("lastPostDate"), $cs->get("lastPostId")); } #-------------------------------------------------------------------