mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
1df5d2b641
commit
cdf221bdde
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user