Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: fixing URL suggestion when changing the name of a page

  • Loading branch information...
commit ea377b6012e75011a6141af16c4c9f54e69d5be9 1 parent 8f5ec54
@candidasa candidasa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/forms/SiteTreeURLSegmentField.php
View
2  code/forms/SiteTreeURLSegmentField.php
@@ -44,7 +44,7 @@ function suggest($request) {
* @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');
}
Please sign in to comment.
Something went wrong with that request. Please try again.