Closed GoogleCodeExporter closed 8 years ago
// 원글이 존재하는지 체크 $oDocumentModel = &getModel('document'); $oDocument = $oDocumentModel->getDocument($document_srl, false, false, array('document_srl')); if(!$oDocument->isExists()) return new Object(-1,'msg_invalid_request'); $output = $oCommentController->insertComment($args, $bAnonymous); $output = error msg_invalid_request insertComment{ if(!$manual_inserted) { $oDocument = $oDocumentModel->getDocument($document_srl); if($oDocument->isLocked()) 캐시에서 읽어와 에러 } 이유: $columnList 인자에 에 document_srl 만 읽어서 그런대 캐시에서 읽어와 comment_status 값이 없습니다. function isLocked() { if(!$this->isExists()) return false; return $this->get('comment_status') == 'ALLOW' ? false : true; } 머리가 아파서 정리가 안되네요 아무튼 이해하시리라 믿고 이만... 원문 :http://code.google.com/p/xe-core/issues/detail?id=825
Original issue reported on code.google.com by namny...@gmail.com on 10 Feb 2012 at 5:39
namny...@gmail.com
Original comment by sinsy...@gmail.com on 28 Feb 2012 at 12:01
sinsy...@gmail.com
Original issue reported on code.google.com by
namny...@gmail.com
on 10 Feb 2012 at 5:39