fix: 🐛 change of a bad attribute on dynamic page
This commit is contained in:
parent
a21493aea3
commit
e782cad789
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ class DynamicPage extends Model implements TranslatableModel
|
|||
{
|
||||
$oldDynamicPageRoot = self::getModelsCached()->where('id', '!=', $model->getKey())->where('isRoot', true)->first();
|
||||
if ($oldDynamicPageRoot) {
|
||||
$oldDynamicPageRoot->publish = PageStatusEnum::unpublished;
|
||||
$oldDynamicPageRoot->status = PageStatusEnum::unpublished;
|
||||
$oldDynamicPageRoot->isRoot = false;
|
||||
$oldDynamicPageRoot->saveQuietly();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue