mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
글을 수정시 원문의 lang_code값이 없으면 수정할때 다른 언어로 적용되는 문제를 해결함. 원문의 lang_code값이 없다면 최초 수정자의 언어코드를 적용함 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6719 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43bb8abadf
commit
a82f5d9c23
2 changed files with 16 additions and 6 deletions
|
|
@ -328,13 +328,20 @@
|
|||
|
||||
// 글쓴이의 언어변수와 원문의 언어변수가 다르면 확장변수로 처리
|
||||
if($source_obj->get('lang_code') != Context::getLangType()) {
|
||||
$extra_content->title = $obj->title;
|
||||
$extra_content->content = $obj->content;
|
||||
// 원문의 언어변수가 없을경우 확장변수가 아닌 원문의 언어변수를 변경
|
||||
if(!$source_obj->get('lang_code')) {
|
||||
$lang_code_args->document_srl = $source_obj->get('document_srl');
|
||||
$lang_code_args->lang_code = Context::getLangType();
|
||||
$output = executeQuery('document.updateDocumentsLangCode', $lang_code_args);
|
||||
} else {
|
||||
$extra_content->title = $obj->title;
|
||||
$extra_content->content = $obj->content;
|
||||
|
||||
$document_args->document_srl = $source_obj->get('document_srl');
|
||||
$document_output = executeQuery('document.getDocument', $document_args);
|
||||
$obj->title = $document_output->data->title;
|
||||
$obj->content = $document_output->data->content;
|
||||
$document_args->document_srl = $source_obj->get('document_srl');
|
||||
$document_output = executeQuery('document.getDocument', $document_args);
|
||||
$obj->title = $document_output->data->title;
|
||||
$obj->content = $document_output->data->content;
|
||||
}
|
||||
}
|
||||
|
||||
// 세션에서 최고 관리자가 아니면 iframe, script 제거
|
||||
|
|
|
|||
|
|
@ -5,4 +5,7 @@
|
|||
<columns>
|
||||
<column name="lang_code" var="lang_code" notnull="notnull" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue