Browse Source

Page update revision fix

master
Egorka 6 years ago
parent
commit
10a5e1aea6
  1. 3
      common/modules/pages/helpers/PageHelper.php

3
common/modules/pages/helpers/PageHelper.php

@ -20,6 +20,7 @@ class PageHelper
$model->title, $model->title,
$model->slug, $model->slug,
$model->content, $model->content,
Page::TYPE_REVISION,
new Meta( new Meta(
$model->meta->title, $model->meta->title,
$model->meta->description, $model->meta->description,
@ -29,7 +30,7 @@ class PageHelper
$page->revision_at = $model->updated_at; $page->revision_at = $model->updated_at;
$page->revision_id = $model->id; $page->revision_id = $model->id;
$page->type = Page::TYPE_REVISION; //$page->type = Page::TYPE_REVISION;
//$page->tree = 2; //$page->tree = 2;
$parent = Page::find()->andWhere(['slug' => 'temp'])->andWhere(['depth' => 0])->one(); $parent = Page::find()->andWhere(['slug' => 'temp'])->andWhere(['depth' => 0])->one();

Loading…
Cancel
Save