Wrong case on db field for virtual pages (merged from branches/2.2.0@45907, r45687)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46112 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-12-02 21:35:05 +00:00
parent 1df5d2b641
commit cdf221bdde

View File

@ -100,7 +100,7 @@ class VirtualPage extends Page {
if(isset($this->changed['CopyContentFromID']) && $this->changed['CopyContentFromID'] if(isset($this->changed['CopyContentFromID']) && $this->changed['CopyContentFromID']
&& $this->CopyContentFromID != 0 && $this->class == 'VirtualPage' ) { && $this->CopyContentFromID != 0 && $this->class == 'VirtualPage' ) {
$CopyContentFromID = $this->CopyContentFromID; $CopyContentFromID = $this->CopyContentFromID;
$source = DataObject::get_one("Sitetree","`Sitetree`.`ID`='$CopyContentFromID'"); $source = DataObject::get_one("SiteTree","`SiteTree`.`ID`='$CopyContentFromID'");
$this->copyFrom($source); $this->copyFrom($source);
$this->URLSegment = $source->URLSegment . '-' . $this->ID; $this->URLSegment = $source->URLSegment . '-' . $this->ID;
} }