mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
자동저장으로 인한 이미 등록된 글이 덮어씌여지는 버그 수정. 문제 원인은 글을 저장중 자동저장 기능이 동작하여 이미 존재하는 글에 대해 자동저장본이 남아서 생기는 문제임
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3909 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c179e0782e
commit
c52835c291
1 changed files with 5 additions and 0 deletions
|
|
@ -324,6 +324,11 @@
|
|||
// 자동저장한 결과가 없으면 null값 return
|
||||
if(!$saved_doc) return;
|
||||
|
||||
// 자동저장된 값이 혹시 이미 등록된 글인지 확인
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oSaved = $oDocumentModel->getDocument($saved_doc->document_srl);
|
||||
if($oSaved->isExists()) return;
|
||||
|
||||
// 자동저장 데이터에 문서번호가 있고 이 번호에 파일이 있다면 파일을 모두 이동하고
|
||||
// 해당 문서 번호를 editor_sequence로 세팅함
|
||||
if($saved_doc->document_srl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue