mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Correct behaviour if CMSMain::tellBrowserAboutPublicationChange() isn't passed a status message
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@81461 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
db01848417
commit
0690d9f4a4
@ -730,7 +730,7 @@ JS;
|
||||
FormResponse::add("$('Form_EditForm').reloadIfSetTo($page->ID);");
|
||||
}
|
||||
|
||||
FormResponse::status_message($statusMessage, 'good');
|
||||
if($statusMessage) FormResponse::status_message($statusMessage, 'good');
|
||||
FormResponse::add("$('Form_EditForm').elements.StageURLSegment.value = '$JS_stageURL';");
|
||||
FormResponse::add("$('Form_EditForm').elements.LiveURLSegment.value = '$JS_liveURL';");
|
||||
FormResponse::add("$('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value);");
|
||||
|
Loading…
Reference in New Issue
Block a user