board module에서의 새 댓글추가 루틴에서 comment_srl을 잘못 셋팅(셋팅하지 않음 -_-)하고 있었던 버그 픽스. -엘리아님 버그 리포트

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2670 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
venister 2007-10-04 02:36:58 +00:00
parent a185b1fda5
commit 288be14822

View file

@ -117,7 +117,12 @@
$oCommentController = &getController('comment');
// comment_srl이 존재하는지 체크
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
// 만일 comment_srl이 n/a라면 getNextSequence()로 값을 얻어온다.
if(!$obj->comment_srl) {
$obj->comment_srl = getNextSequence();
} else {
$comment = $oCommentModel->getComment($obj->comment_srl, $this->grant->manager);
}
// comment_srl이 없을 경우 신규 입력
if($comment->comment_srl != $obj->comment_srl) {
@ -146,7 +151,7 @@
$this->setMessage('success_registed');
$this->add('mid', Context::get('mid'));
$this->add('document_srl', $obj->document_srl);
$this->add('comment_srl', $comment_srl);
$this->add('comment_srl', $obj->comment_srl);
}
/**