From e5daa223ede83257bf16818c97010c3fac3eaed7 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 22 Nov 2008 00:44:41 +0000 Subject: [PATCH] forward port thread approval workflow into thread --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Post/Thread.pm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1d8c82a19..0501f6e3c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -47,6 +47,7 @@ - fixed #4181: hoover help for 'encrypt login' is wrong - fixed #4186: search results (macro not expanded in the synopsis field) - fixed #4191: Using 3 consecutive tildes in a Post title makes a bad URL/Pos + - fixed #8927: Collaboration System: Thread approval workflow setting ignore 7.6.3 - improved performance of file uploads diff --git a/lib/WebGUI/Asset/Post/Thread.pm b/lib/WebGUI/Asset/Post/Thread.pm index 7d399e93b..c7ab6c4c0 100644 --- a/lib/WebGUI/Asset/Post/Thread.pm +++ b/lib/WebGUI/Asset/Post/Thread.pm @@ -248,6 +248,12 @@ sub getArchiveUrl { $self->getUrl("func=archive"); } +#------------------------------------------------------------------- +sub getAutoCommitWorkflowId { + my $self = shift; + return $self->getThread->getParent->get("threadApprovalWorkflow"); +} + #------------------------------------------------------------------- sub getLastPost { my $self = shift;