mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #632 prevent overwriting document config
This commit is contained in:
parent
33ed9a94bf
commit
4cf24d3ed2
1 changed files with 3 additions and 1 deletions
|
|
@ -468,8 +468,10 @@ class documentAdminController extends document
|
|||
function procDocumentAdminInsertConfig()
|
||||
{
|
||||
// Get the basic information
|
||||
$config = new stdClass();
|
||||
$oDocumentModel = getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
$config->view_count_option = Context::get('view_count_option');
|
||||
|
||||
// Insert by creating the module Controller object
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('document',$config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue