mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: fixing URL suggestion when changing the name of a page
This commit is contained in:
parent
8f5ec545ae
commit
ea377b6012
@ -44,7 +44,7 @@ class SiteTreeURLSegmentField extends TextField {
|
||||
* @return SiteTree
|
||||
*/
|
||||
function getPage() {
|
||||
$idField = $this->getForm()->dataFieldByName('ID');
|
||||
$idField = $this->getForm()->Fields()->dataFieldByName('ID');
|
||||
return ($idField && $idField->Value()) ? DataObject::get_by_id('SiteTree', $idField->Value()) : singleton('SiteTree');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user