#19623731 file upload 시에 upload_target_srl로 문서번호를 넘겨주는데 서버에서는 uploadTargetSrl로 받아서 해당 값이 없음.

SESSION에서 받아 와야 하는데 이때도 없으면 next sequence를 가져오면서 실제 doc srl과 file의 target srl 값이 1씩 차이가 남
이를 해결하고자 Context에서 받는 key 값을 수정


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8186 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-03-16 02:48:37 +00:00
parent 1d92890a13
commit 982b532a77

View file

@ -30,6 +30,7 @@
$oFileModel = &getModel('file');
$editor_sequence = Context::get('editor_sequence');
$upload_target_srl = intval(Context::get('uploadTargetSrl'));
if(!$upload_target_srl) $upload_target_srl = intval(Context::get('upload_target_srl'));
$module_srl = $this->module_srl;
// 업로드 권한이 없거나 정보가 없을시 종료
@ -55,6 +56,7 @@
$callback = Context::get('callback');
$module_srl = $this->module_srl;
$upload_target_srl = intval(Context::get('uploadTargetSrl'));
if(!$upload_target_srl) $upload_target_srl = intval(Context::get('upload_target_srl'));
// 업로드 권한이 없거나 정보가 없을시 종료
if(!$_SESSION['upload_info'][$editor_sequence]->enabled) exit();