Skip to content

Commit

Permalink
fix not needed duplication when restoring a page from archived state
Browse files Browse the repository at this point in the history
  • Loading branch information
AljosaB committed Aug 30, 2023
1 parent a6caf0a commit 1a7131c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/advanced_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1a7131c

Please sign in to comment.