Fix #632 prevent overwriting document config

This commit is contained in:
Kijin Sung 2016-11-10 17:33:53 +09:00
parent 33ed9a94bf
commit 4cf24d3ed2

View file

@ -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);