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:
Geoff Munn 2009-08-31 00:21:46 +00:00
parent 42d12d75b8
commit 95e50bd78f

View File

@ -1256,7 +1256,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$this->flushCache();
// 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) {
$page->copyFrom($page->CopyContentFrom());
$page->write();
@ -1697,7 +1697,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
}
// 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) {
$page->copyFrom($page->CopyContentFrom());
$page->doPublish();