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:
Sam Minnee 2009-07-09 05:41:12 +00:00
parent db01848417
commit 0690d9f4a4

View File

@ -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);");