fix #32 다국어로 작성한 문서를 이동 시 문서 내용이 다른 언어의 내용으로 잘못 변경되는 문제 고침. patch by @sejin7940

This commit is contained in:
bnu 2014-12-24 18:45:08 +09:00
parent f4e4cb4a33
commit 51e702d510

View file

@ -83,6 +83,12 @@ class documentAdminController extends document
unset($obj);
$obj = $oDocument->getObjectVars();
// ISSUE https://github.com/xpressengine/xe-core/issues/32
$args_doc_origin->document_srl = $document_srl;
$output_ori = executeQuery('document.getDocument', $args_doc_origin, array('content'));
$obj->content = $output_ori->data->content;
// Move the attached file if the target module is different
if($module_srl != $obj->module_srl && $oDocument->hasUploadedFiles())
{