Commit 77182361bf1cf3f5242f3d906257ab2ad40250c3
1 parent
683f7bdd
*** empty log message ***
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1771 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/discussions/addCommentBL.php
| @@ -75,11 +75,10 @@ if (checkSession()) { | @@ -75,11 +75,10 @@ if (checkSession()) { | ||
| 75 | if($oComment->getID() > 0) { | 75 | if($oComment->getID() > 0) { |
| 76 | $oThread = DiscussionThread::get($iThreadID); | 76 | $oThread = DiscussionThread::get($iThreadID); |
| 77 | $oThread->setLastCommentID($oComment->getID()); | 77 | $oThread->setLastCommentID($oComment->getID()); |
| 78 | - if ($oThread->getFirstComment == -1){ // if it is a new Thread | ||
| 79 | - $oThread->setFirstCommentID($oComment->getID()); | ||
| 80 | - $oThread->setNumberOfViews(); | ||
| 81 | - $oThread->setNumberOfReplies(); | 78 | + if ($oThread->getFirstComment() == -1){ // if it is a new Thread |
| 79 | + $oThread->setFirstCommentID($oComment->getID()); | ||
| 82 | } | 80 | } |
| 81 | + $oThread->setNumberOfViews(); | ||
| 83 | $oThread->setNumberOfReplies(); | 82 | $oThread->setNumberOfReplies(); |
| 84 | if ($oThread->Update()) { | 83 | if ($oThread->Update()) { |
| 85 | $oPatternCustom->addHtml(getSubmitSuccessPage($iDocumentID)); | 84 | $oPatternCustom->addHtml(getSubmitSuccessPage($iDocumentID)); |