mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +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'];
|
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($mode) {
|
// 자동저장된 값이 혹시 이미 등록된 글인지 확인
|
||||||
$output = executeQuery('editor.getSavedDocument', $args);
|
$oDocumentModel = &getModel('document');
|
||||||
$trigger_obj = $output->data;
|
$oSaved = $oDocumentModel->getDocument($saved_doc->document_srl);
|
||||||
$output = ModuleHandler::triggerCall('editor.deleteSavedDoc', 'after', $trigger_obj);
|
if(!$oSaved->isExists()) {
|
||||||
|
if($mode) {
|
||||||
|
$output = executeQuery('editor.getSavedDocument', $args);
|
||||||
|
$trigger_obj = $output->data;
|
||||||
|
$output = ModuleHandler::triggerCall('editor.deleteSavedDoc', 'after', $trigger_obj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 일단 이전 저장본 삭제
|
// 일단 이전 저장본 삭제
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@
|
||||||
**/
|
**/
|
||||||
if($enable_autosave) {
|
if($enable_autosave) {
|
||||||
// 자동 저장된 데이터를 추출
|
// 자동 저장된 데이터를 추출
|
||||||
$saved_doc = $this->getSavedDoc($upload_target_srl);
|
if(!Context::get($option->primary_key_name)) $saved_doc = $this->getSavedDoc($upload_target_srl);
|
||||||
|
|
||||||
// 자동 저장 데이터를 context setting
|
// 자동 저장 데이터를 context setting
|
||||||
Context::set('saved_doc', $saved_doc);
|
Context::set('saved_doc', $saved_doc);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue