From 7f6553fd47360305847f0af55413b80c90cd0f0e Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 30 May 2025 17:24:30 +0900 Subject: [PATCH] Add more detailed note about editor_mid --- modules/editor/editor.model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/editor/editor.model.php b/modules/editor/editor.model.php index aba1ed1a6..8ca4e2ae4 100644 --- a/modules/editor/editor.model.php +++ b/modules/editor/editor.model.php @@ -280,7 +280,10 @@ class EditorModel extends Editor } FileController::setUploadInfo($option->editor_sequence, $upload_target_srl, $option->module_srl ?? 0, $upload_config); - // Set editor mid + // Set editor_mid, which may be different from current_mid on the client side. + // While current_mid follows the URL that the user is currently viewing, + // editor_mid unambiguously refers to the module to which files should be uploaded. + // This difference may be significant when a document from one module is shown in another module. if (!empty($option->module_srl)) { $option->mid = ModuleModel::getModuleInfoByModuleSrl($option->module_srl)->mid ?? null;