mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
글 수정 시 파일 삭제되는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6565 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bcc0619a85
commit
4beeb3828f
2 changed files with 10 additions and 5 deletions
|
|
@ -295,10 +295,15 @@
|
|||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
if($mode) {
|
||||
$output = executeQuery('editor.getSavedDocument', $args);
|
||||
$trigger_obj = $output->data;
|
||||
$output = ModuleHandler::triggerCall('editor.deleteSavedDoc', 'after', $trigger_obj);
|
||||
// 자동저장된 값이 혹시 이미 등록된 글인지 확인
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
// 일단 이전 저장본 삭제
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue