mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Show please update related pages message, regardless of the owner of the related relationship (from r87257)
This commit is contained in:
parent
5aae99f3d2
commit
34245d49f2
@ -126,7 +126,7 @@ class LeftAndMainSubsites extends Extension {
|
||||
}
|
||||
|
||||
function onAfterSave($record) {
|
||||
if($record->hasMethod('RelatedPages') && $record->RelatedPages()) {
|
||||
if($record->hasMethod('NormalRelated') && ($record->NormalRelated() || $record->ReverseRelated())) {
|
||||
FormResponse::status_message('Saved, please update related pages.', 'good');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user