mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#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:
parent
1d92890a13
commit
982b532a77
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue