Skip to content
This repository
Browse code

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

  • Loading branch information...
commit ea377b6012e75011a6141af16c4c9f54e69d5be9 1 parent 8f5ec54
Julian Seidenberg authored April 05, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/forms/SiteTreeURLSegmentField.php
2  code/forms/SiteTreeURLSegmentField.php
@@ -44,7 +44,7 @@ function suggest($request) {
44 44
 	 * @return SiteTree
45 45
 	 */
46 46
 	function getPage() {
47  
-		$idField = $this->getForm()->dataFieldByName('ID');
  47
+		$idField = $this->getForm()->Fields()->dataFieldByName('ID');
48 48
 		return ($idField && $idField->Value()) ? DataObject::get_by_id('SiteTree', $idField->Value()) : singleton('SiteTree');
49 49
 	}
50 50
 	

0 notes on commit ea377b6

Please sign in to comment.
Something went wrong with that request. Please try again.