Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Feb 5, 2020
1 parent f8aa99a commit b266b66
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/controllers/AdminCmsContentElementController.php
Expand Up @@ -896,11 +896,7 @@ public function create($adminAction)
$model = new $modelClassName;

$model->loadDefaultValues();

if ($content_id = \Yii::$app->request->get("content_id")) {
$contentModel = \skeeks\cms\models\CmsContent::findOne($content_id);
$model->content_id = $content_id;
}
$model->content_id = $this->content->id;

$relatedModel = $model->relatedPropertiesModel;
$relatedModel->loadDefaultValues();
Expand Down

0 comments on commit b266b66

Please sign in to comment.