확장변수 수정 가능하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5837 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-11 03:21:34 +00:00
parent d789f41342
commit d95436de0f
2 changed files with 6 additions and 5 deletions

View file

@ -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;
}

View file

@ -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>