diff --git a/modules/editor/editor.model.php b/modules/editor/editor.model.php index bcc20d225..f6a430aef 100644 --- a/modules/editor/editor.model.php +++ b/modules/editor/editor.model.php @@ -469,6 +469,11 @@ class EditorModel extends Editor if ($type === 'document') { $option->upload_target_type = 'doc'; + // For dispWidgetAdminAddContent + if ($primary_key_name === 'module_srl') + { + $option->upload_target_type = 'mod'; + } } elseif ($type === 'comment') {