Skip to content

Commit

Permalink
'模块配置bug'
Browse files Browse the repository at this point in the history
  • Loading branch information
yidashi committed Feb 17, 2017
1 parent 6cf6d98 commit 92dabb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controllers/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function actionConfig($id)
Yii::$app->session->setFlash('error', '插件没安装');
return $this->redirect(['index']);
}
$configs = $module->getConfig();
$configs = Json::decode($module->getModel()->config);
$configModels = [];
if (!empty($configs)) {
foreach ($configs as $k => $config) {
Expand Down
2 changes: 1 addition & 1 deletion backend/controllers/PluginsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function actionConfig($id)
Yii::$app->session->setFlash('error', '插件没安装');
return $this->redirect(['index']);
}
$configs = $plugin->getConfig();
$configs = Json::decode($plugin->getModel()->config);
$configModels = [];
if (!empty($configs)) {
foreach ($configs as $k => $config) {
Expand Down

0 comments on commit 92dabb1

Please sign in to comment.