mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Revert #1776 patch; use apparent_module_srl instead
https://xetown.com/questions/1612784
This commit is contained in:
parent
76cc70bbb3
commit
be2c53581f
2 changed files with 27 additions and 18 deletions
|
|
@ -339,7 +339,7 @@ class boardView extends board
|
|||
Context::set('update_view', $this->grant->update_view);
|
||||
|
||||
// setup the document oject on context
|
||||
$oDocument->add('module_srl', $this->module_srl);
|
||||
$oDocument->add('apparent_module_srl', $this->module_srl);
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
/**
|
||||
|
|
@ -618,10 +618,10 @@ class boardView extends board
|
|||
}
|
||||
foreach ($document_list as $document)
|
||||
{
|
||||
$module_srl = $document->get('origin_module_srl') ?: $document->get('module_srl');
|
||||
$module_srl = $document->get('module_srl');
|
||||
if ($document->get('mid') === null)
|
||||
{
|
||||
$document->add('module_srl', $this->module_info->module_srl);
|
||||
$document->add('apparent_module_srl', $this->module_info->module_srl);
|
||||
$document->add('module_title', isset($map[$module_srl]) ? $map[$module_srl]->browser_title : $this->module_info->browser_title);
|
||||
$document->add('mid', isset($map[$module_srl]) ? $map[$module_srl]->mid : $this->module_info->mid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue