Add more detailed note about editor_mid

This commit is contained in:
Kijin Sung 2025-05-30 17:24:30 +09:00
parent 6e325526c8
commit 7f6553fd47

View file

@ -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;