From db7efad6ca5cf9e60eb99fb0c270b640f836a8fa Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 5 Mar 2021 14:48:08 +1300 Subject: [PATCH] FIX undefined variable inChangeSets --- code/Controllers/CMSMain.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index 5897559a..f60505d3 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -1472,8 +1472,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $archiveWarningMsg = _t('SilverStripe\\CMS\\Controllers\\CMSMain.ArchiveWarningWithChildrenAndCampaigns', 'Warning: This page and all of its child pages will be unpublished and automatically removed from their associated {NumCampaigns} before being sent to the archive.\n\nAre you sure you want to proceed?', [ 'NumCampaigns' => $numCampaigns ]); } elseif (count($descendants) > 0) { $archiveWarningMsg = $defaultMessage; - } elseif ($inChangeSets->count() > 0) { - $archiveWarningMsg = _t('SilverStripe\\CMS\\Controllers\\CMSMain.ArchiveWarningWithChildren', 'Warning: This page and all of its child pages will be unpublished before being sent to the archive.\n\nAre you sure you want to proceed?'); } elseif ($affectedChangeSetCount > 0) { $archiveWarningMsg = _t('SilverStripe\\CMS\\Controllers\\CMSMain.ArchiveWarningWithCampaigns', 'Warning: This page will be unpublished and automatically removed from their associated {NumCampaigns} before being sent to the archive.\n\nAre you sure you want to proceed?', [ 'NumCampaigns' => $numCampaigns ]); } else {