mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG FIX: column names quoted properly (from r100690)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105621 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
96ebc35cee
commit
0a91f30722
@ -2044,7 +2044,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function generate_homepage_domain_map() {
|
static function generate_homepage_domain_map() {
|
||||||
$domainSpecificHomepages = Versioned::get_by_stage('Page', 'Live', "HomepageForDomain != ''", 'URLSegment ASC');
|
$domainSpecificHomepages = Versioned::get_by_stage('Page', 'Live', "\"HomepageForDomain\" != ''", "\"URLSegment\" ASC");
|
||||||
if (!$domainSpecificHomepages) return false;
|
if (!$domainSpecificHomepages) return false;
|
||||||
|
|
||||||
$map = array();
|
$map = array();
|
||||||
|
@ -149,8 +149,8 @@ class VirtualPage extends Page {
|
|||||||
&& Versioned::current_stage() == 'Live') {
|
&& Versioned::current_stage() == 'Live') {
|
||||||
$performCopyFrom = true;
|
$performCopyFrom = true;
|
||||||
|
|
||||||
$stageSourceVersion = DB::query("SELECT Version FROM SiteTree WHERE ID = $this->CopyContentFromID")->value();
|
$stageSourceVersion = DB::query("SELECT \"Version\" FROM \"SiteTree\" WHERE \"ID\" = $this->CopyContentFromID")->value();
|
||||||
$liveSourceVersion = DB::query("SELECT Version FROM SiteTree_Live WHERE ID = $this->CopyContentFromID")->value();
|
$liveSourceVersion = DB::query("SELECT \"Version\" FROM \"SiteTree_Live\" WHERE \"ID\" = $this->CopyContentFromID")->value();
|
||||||
|
|
||||||
// We're going to create a new VP record in SiteTree_versions because the published
|
// We're going to create a new VP record in SiteTree_versions because the published
|
||||||
// version might not exist, unless we're publishing the latest version
|
// version might not exist, unless we're publishing the latest version
|
||||||
|
Loading…
Reference in New Issue
Block a user