mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Set editor_mid automatically based on module_srl
This commit is contained in:
parent
e1cfb09652
commit
990343d906
5 changed files with 7 additions and 29 deletions
|
|
@ -260,6 +260,10 @@ class EditorModel extends Editor
|
|||
FileController::setUploadInfo($option->editor_sequence, $upload_target_srl, $option->module_srl ?? 0);
|
||||
|
||||
// Set editor mid
|
||||
if (!empty($option->module_srl))
|
||||
{
|
||||
$option->mid = ModuleModel::getModuleInfoByModuleSrl($option->module_srl)->mid ?? null;
|
||||
}
|
||||
if (!empty($option->mid))
|
||||
{
|
||||
Context::addHtmlFooter('<script> var editor_mid = ' . json_encode($option->mid) . '; </script>');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue