From ea84cb5a615e10c78d5a3971cb61ab7944452a50 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 9 Sep 2008 22:58:04 +0000 Subject: [PATCH] BUGFIX Set ID of lostpassword page to -1 so we don't get top level pages as its children git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@62107 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Security.php | 1 + 1 file changed, 1 insertion(+) diff --git a/security/Security.php b/security/Security.php index b5aebcf19..6f887c356 100644 --- a/security/Security.php +++ b/security/Security.php @@ -334,6 +334,7 @@ class Security extends Controller { $tmpPage = new Page(); $tmpPage->Title = _t('Security.LOSTPASSWORDHEADER', 'Lost Password'); $tmpPage->URLSegment = 'Security'; + $tmpPage->ID = -1; // Set the page ID to -1 so we dont get the top level pages as its children $controller = new Page_Controller($tmpPage); $controller->init();