mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
확장변수 수정 가능하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5837 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d789f41342
commit
d95436de0f
2 changed files with 6 additions and 5 deletions
|
|
@ -350,7 +350,7 @@
|
|||
// 등록 성공시 확장 변수 등록
|
||||
$extra_keys = $oDocumentModel->getExtraKeys($obj->module_srl);
|
||||
if(count($extra_keys)) {
|
||||
$this->deleteDocumentExtraVars($obj->module_srl, $obj->document_srl, Context::getLangType());
|
||||
$this->deleteDocumentExtraVars($obj->module_srl, $obj->document_srl, null, Context::getLangType());
|
||||
|
||||
// 관리자 설정 확장변수 등록
|
||||
foreach($extra_keys as $idx => $extra_item) {
|
||||
|
|
@ -563,12 +563,13 @@
|
|||
/**
|
||||
* @brief documents 확장변수 값 제거
|
||||
**/
|
||||
function deleteDocumentExtraVars($module_srl, $document_srl = null, $var_idx = null, $lang_type = null) {
|
||||
function deleteDocumentExtraVars($module_srl, $document_srl = null, $var_idx = null, $lang_code = null) {
|
||||
$obj->module_srl = $module_srl;
|
||||
if(!is_null($document_srl)) $obj->document_srl = $document_srl;
|
||||
if(!is_null($var_idx)) $obj->var_idx = $var_idx;
|
||||
if(!is_null($lang_type)) $obj->lang_type = $lang_type;
|
||||
return executeQuery('document.deleteDocumentExtraVars', $obj);
|
||||
if(!is_null($lang_code)) $obj->lang_code = $lang_code;
|
||||
$output = executeQuery('document.deleteDocumentExtraVars', $obj);
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" pipe="and" />
|
||||
<condition operation="equal" column="var_idx" var="var_idx" filter="number" pipe="and" />
|
||||
<condition operation="equal" column="lang_type" var="lang_type" pipe="and" />
|
||||
<condition operation="equal" column="lang_code" var="lang_code" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue