From e782cad7898baa41b56dbccf5cccb1bb0ade47bd Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 20 Jan 2026 15:26:39 +0100 Subject: [PATCH] fix: :bug: change of a bad attribute on dynamic page --- app/Models/DynamicPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/DynamicPage.php b/app/Models/DynamicPage.php index 0e2bd95b..c2df355b 100644 --- a/app/Models/DynamicPage.php +++ b/app/Models/DynamicPage.php @@ -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(); }