From a57e18bbb62c7d103aefc2abab3308251c459e76 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 04:06:42 +0000 Subject: [PATCH] BUGFIX: Make sure navigation links update when urlsegment is changed (from r98649) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99124 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index a5ac01b3..591a4131 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -712,7 +712,8 @@ JS; } // HACK: This should be turned into somethign more general - if( ($record->class == 'VirtualPage' && $originalURLSegment != $record->URLSegment) || + // Removed virtualpage test as we need to draft/published links when url is changed + if( (/*$record->class == 'VirtualPage' &&*/ $originalURLSegment != $record->URLSegment) || ($originalClass != $record->ClassName) || self::$ForceReload == true) { FormResponse::add("$('Form_EditForm').getPageFromServer($record->ID);"); }