mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +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()
|
function procDocumentAdminInsertConfig()
|
||||||
{
|
{
|
||||||
// Get the basic information
|
// Get the basic information
|
||||||
$config = new stdClass();
|
$oDocumentModel = getModel('document');
|
||||||
|
$config = $oDocumentModel->getDocumentConfig();
|
||||||
$config->view_count_option = Context::get('view_count_option');
|
$config->view_count_option = Context::get('view_count_option');
|
||||||
|
|
||||||
// Insert by creating the module Controller object
|
// Insert by creating the module Controller object
|
||||||
$oModuleController = getController('module');
|
$oModuleController = getController('module');
|
||||||
$output = $oModuleController->insertModuleConfig('document',$config);
|
$output = $oModuleController->insertModuleConfig('document',$config);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue