#242 문서 사용자 정의 필드 설정이 갱신 안 되는 문제 수정.

This commit is contained in:
bnu 2014-01-09 00:29:58 +09:00
parent 35a385d70f
commit 9300b5fa35
3 changed files with 32 additions and 8 deletions

View file

@ -541,12 +541,12 @@ class documentAdminController extends document
$desc = Context::get('desc') ? Context::get('desc') : '';
$search = Context::get('search');
$eid = Context::get('eid');
$obj = new stdClass();
if(!$module_srl || !$name || !$eid) return new Object(-1,'msg_invalid_request');
// set the max value if idx is not specified
if(!$var_idx)
{
$obj = new stdClass();
$obj->module_srl = $module_srl;
$output = executeQuery('document.getDocumentMaxExtraKeyIdx', $obj);
$var_idx = $output->data->var_idx+1;
@ -660,6 +660,14 @@ class documentAdminController extends document
$output = executeQuery('document.updateDocumentExtraVarIdx', $args);
if(!$output->toBool()) return $output;
}
$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
if($oCacheHandler->isSupport())
{
$object_key = 'module_document_extra_keys:'.$module_srl;
$cache_key = $oCacheHandler->getGroupKey('site_and_module', $object_key);
$oCacheHandler->delete($cache_key);
}
}
/**