mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
자동 저장 문서 삭제 부분 - mid별로 삭제 되게 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6582 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
607ba936bb
commit
c2bc3067a2
4 changed files with 19 additions and 6 deletions
|
|
@ -294,15 +294,24 @@
|
|||
} else {
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
$args->module_srl = Context::get('module_srl');
|
||||
// module_srl이 없으면 현재 모듈
|
||||
if(!$args->module_srl) {
|
||||
$current_module_info = Context::get('current_module_info');
|
||||
$args->module_srl = $current_module_info->module_srl;
|
||||
}
|
||||
|
||||
// 자동저장된 값이 혹시 이미 등록된 글인지 확인
|
||||
$output = executeQuery('editor.getSavedDocument', $args);
|
||||
$saved_doc = $output->data;
|
||||
if(!$saved_doc) return;
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oSaved = $oDocumentModel->getDocument($saved_doc->document_srl);
|
||||
if(!$oSaved->isExists()) {
|
||||
if($mode) {
|
||||
$output = executeQuery('editor.getSavedDocument', $args);
|
||||
$trigger_obj = $output->data;
|
||||
$output = ModuleHandler::triggerCall('editor.deleteSavedDoc', 'after', $trigger_obj);
|
||||
$output = ModuleHandler::triggerCall('editor.deleteSavedDoc', 'after', $saved_doc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue