Skip to content

Commit

Permalink
MINOR Fixed usage of deprecated Form->dataFieldByName()
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Apr 5, 2012
1 parent a6c586a commit 4524d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/forms/SiteTreeURLSegmentField.php
Expand Up @@ -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');
}

Expand Down

0 comments on commit 4524d1c

Please sign in to comment.