From 0690d9f4a44d2792f894cdae5ea8248a55099a9a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 9 Jul 2009 05:41:12 +0000 Subject: [PATCH] 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 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index d4c098e2..db70df98 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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);");