Set proper module_srl and mid when uploading in member and communication modules

This commit is contained in:
Kijin Sung 2023-11-02 21:22:43 +09:00
parent f6a02fd006
commit e1cfb09652
5 changed files with 82 additions and 3 deletions

View file

@ -293,6 +293,12 @@ class CommunicationView extends communication
{
$option->editor_toolbar_hide = 'Y';
}
if ($option->allow_fileupload)
{
$oMemberView = MemberView::getInstance();
$option->module_srl = $oMemberView->getMemberModuleSrl();
$option->mid = $oMemberView->getMemberModulePrefix();
}
$editor = $oEditorModel->getEditor(getNextSequence(), $option);
$editor = $editor . "\n" . '<input type="hidden" name="temp_srl" value="" />' . "\n";
Context::set('editor', $editor);