mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR FIX: column names quoted properly
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@85418 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
42d12d75b8
commit
95e50bd78f
@ -1256,7 +1256,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$this->flushCache();
|
$this->flushCache();
|
||||||
|
|
||||||
// Update any virtual pages that might need updating
|
// Update any virtual pages that might need updating
|
||||||
$linkedPages = DataObject::get("VirtualPage", "CopyContentFromID = $this->ID");
|
$linkedPages = DataObject::get("VirtualPage", "\"CopyContentFromID\" = $this->ID");
|
||||||
if($linkedPages) foreach($linkedPages as $page) {
|
if($linkedPages) foreach($linkedPages as $page) {
|
||||||
$page->copyFrom($page->CopyContentFrom());
|
$page->copyFrom($page->CopyContentFrom());
|
||||||
$page->write();
|
$page->write();
|
||||||
@ -1697,7 +1697,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Publish any virtual pages that might need publishing
|
// Publish any virtual pages that might need publishing
|
||||||
$linkedPages = DataObject::get("VirtualPage", "CopyContentFromID = $this->ID");
|
$linkedPages = DataObject::get("VirtualPage", "\"CopyContentFromID\" = $this->ID");
|
||||||
if($linkedPages) foreach($linkedPages as $page) {
|
if($linkedPages) foreach($linkedPages as $page) {
|
||||||
$page->copyFrom($page->CopyContentFrom());
|
$page->copyFrom($page->CopyContentFrom());
|
||||||
$page->doPublish();
|
$page->doPublish();
|
||||||
|
Loading…
Reference in New Issue
Block a user