mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
#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
This commit is contained in:
parent
5205ee4b45
commit
d1ead49133
@ -475,9 +475,8 @@ JS;
|
|||||||
$descRemoved = '';
|
$descRemoved = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = Convert::raw2js($record->Title);
|
|
||||||
FormResponse::add($this->deleteTreeNodeJS($record));
|
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();
|
return FormResponse::respond();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user