From d1ead49133e912cc0ca1f2eb09a33e215b30a704 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 12 Dec 2007 05:16:10 +0000 Subject: [PATCH] #1056 - Fixed deletefromlive messages with quote in title Fixed Convert::raw2js() for strings containing slashes git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@46672 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 9cf678f9..100d64bb 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -475,9 +475,8 @@ JS; $descRemoved = ''; } - $title = Convert::raw2js($record->Title); FormResponse::add($this->deleteTreeNodeJS($record)); - FormResponse::status_message("Deleted '$title'$descRemoved from live site", 'good'); + FormResponse::status_message("Deleted '$record->Title'$descRemoved from live site", 'good'); return FormResponse::respond(); }