mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Removed ANSI compatible SQL that shouldn't be in branches/2.3 - this feature is available in trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70077 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9b84e9df6f
commit
ba854a960e
@ -628,7 +628,7 @@ JS;
|
||||
if(Director::is_ajax()) {
|
||||
// need a valid ID value even if the record doesn't have one in the database
|
||||
// (its still present in the live tables)
|
||||
$liveRecord = Versioned::get_one_by_stage('SiteTree', 'Live', "\"SiteTree_Live\".\"ID\" = $recordID");
|
||||
$liveRecord = Versioned::get_one_by_stage('SiteTree', 'Live', "SiteTree_Live.ID = $recordID");
|
||||
// if the page has never been published to live, we need to act the same way as in deletefromlive()
|
||||
if($liveRecord) {
|
||||
// the form is readonly now, so we need to refresh the representation
|
||||
|
Loading…
Reference in New Issue
Block a user