From 7c74f554c9cba3cd20ea03c5238513c2ed71db86 Mon Sep 17 00:00:00 2001 From: Tyler Bello Date: Thu, 24 Sep 2009 17:41:08 +0000 Subject: Fix to content_guid setting in storeComment. Didnt allow for alternate guids of derived types --- LibertyComment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LibertyComment.php b/LibertyComment.php index fef06a2..39744fd 100644 --- a/LibertyComment.php +++ b/LibertyComment.php @@ -3,7 +3,7 @@ * Management of Liberty Content * * @package liberty - * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.88 2009/09/15 14:34:57 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.89 2009/09/24 17:41:08 tylerbello Exp $ * @author spider */ @@ -37,6 +37,7 @@ class LibertyComment extends LibertyMime { $this->mCommentId = $pCommentId; $this->mContentId = $pContentId; $this->mInfo = $pInfo; + $this->mContentTypeGuid = BITCOMMENT_CONTENT_TYPE_GUID; $this->mAdminContentPerm = 'p_liberty_admin_comments'; $this->mRootObj = NULL; @@ -151,7 +152,7 @@ class LibertyComment extends LibertyMime { } function storeComment( &$pParamHash ) { - $pParamHash['content_type_guid'] = BITCOMMENT_CONTENT_TYPE_GUID; + $this->mDb->StartTrans(); if( $this->verifyComment($pParamHash) && LibertyMime::store( $pParamHash ) ) { -- cgit v1.3