mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
게시글 등록시 trigger 호출 전에 document_Srl 을 지정하는 루틴을 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6229 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
35ba173b00
commit
9543f50a43
1 changed files with 3 additions and 3 deletions
|
|
@ -144,13 +144,13 @@
|
|||
unset($obj->_saved_doc_content);
|
||||
unset($obj->_saved_doc_message);
|
||||
|
||||
// 주어진 문서 번호가 없으면 문서 번호 등록
|
||||
if(!$obj->document_srl) $obj->document_srl = getNextSequence();
|
||||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('document.insertDocument', 'before', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
// 주어진 문서 번호가 없으면 문서 번호 등록
|
||||
if(!$obj->document_srl) $obj->document_srl = getNextSequence();
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
// 카테고리가 있나 검사하여 없는 카테고리면 0으로 세팅
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue