mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
9952e10abe
commit
a57e18bbb6
@ -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);");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user