Fix incorrect header script if member module uses its own layout #2474

This commit is contained in:
Kijin Sung 2025-02-15 21:24:06 +09:00
parent a478127c61
commit ef751041dd
2 changed files with 10 additions and 8 deletions

View file

@ -268,13 +268,6 @@ class ModuleHandler extends Handler
// Reset layout_srl in module_info.
$module_info->{$targetSrl} = $layoutSrl;
// Add layout header script.
$part_config = ModuleModel::getModulePartConfig('layout', $layoutSrl);
if ($part_config && isset($part_config->header_script))
{
Context::addHtmlHeader($part_config->header_script);
}
}
else
{