diff --git a/docs/en/advanced_setup.md b/docs/en/advanced_setup.md index 0dafb423..27bd4ba1 100644 --- a/docs/en/advanced_setup.md +++ b/docs/en/advanced_setup.md @@ -201,7 +201,7 @@ class BlockPage extends Page { parent::onBeforeWrite(); - if (!$this->isDraftedInLocale() && $this->isInDB()) { + if (!$this->isDraftedInLocale() && $this->isInDB() && !$this->isArchived()) { $elementalArea = $this->ElementalArea(); $elementalAreaNew = $elementalArea->duplicate();