BUGFIX Fixed call to deprecated function Form::loadNonBlankDataFrom() on BlogHolder, replacing it with Form::loadDataFrom()

This commit is contained in:
Sean Harvey 2009-05-20 05:00:32 +00:00
parent 488319ceb5
commit dfb9e17c2c

View File

@ -212,11 +212,11 @@ class BlogHolder_Controller extends BlogTree_Controller {
if($id != 0) {
$entry = DataObject::get_by_id('BlogEntry', $id);
if($entry->IsOwner()) {
$form->loadNonBlankDataFrom($entry);
$form->loadDataFrom($entry);
$form->datafieldByName('BlogPost')->setValue($entry->Content);
}
} else {
$form->loadNonBlankDataFrom(array("Author" => Cookie::get("BlogHolder_Name")));
$form->loadDataFrom(array("Author" => Cookie::get("BlogHolder_Name")));
}
return $form;