mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#18354552 휴지통으로 문서를 이동할 때, 첨부파일을 대기상태로 변경.(휴지통에서 나오면 다시 유효 상태로 변경) 관리자가 삭제하지 않도록, 문서 앞에 말머리 달아줌., 주석 중에 오타로 보이는 것 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7090 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
24aab02897
commit
9321a74c67
5 changed files with 39 additions and 13 deletions
|
|
@ -492,6 +492,7 @@
|
|||
|
||||
function restoreTrash($trash_srl){
|
||||
$oDB = &DB::getInstance();
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
$trash_args->trash_srl = $trash_srl;
|
||||
|
||||
|
|
@ -502,6 +503,7 @@
|
|||
|
||||
$document_args->document_srl = $output->data->document_srl;
|
||||
$document_args->module_srl = $output->data->module_srl;
|
||||
$oDocument = $oDocumentModel->getDocument($document_args->document_srl);
|
||||
|
||||
// begin transaction
|
||||
$oDB->begin();
|
||||
|
|
@ -518,6 +520,13 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
// 임시 저장되었던 글이 아닌 경우, 등록된 첨부파일의 상태를 유효로 지정
|
||||
if($oDocument->hasUploadedFiles() && $output->data->module_srl != $output->data->member_srl) {
|
||||
$args->upload_target_srl = $oDocument->document_srl;
|
||||
$args->isvalid = 'Y';
|
||||
executeQuery('file.updateFileValid', $args);
|
||||
}
|
||||
|
||||
// commit
|
||||
$oDB->commit();
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue