BUGFIX Force the migrated comment to be inserted into the database.

This commit is contained in:
Simon Welsh 2012-03-17 12:21:58 +13:00 committed by Simon Welsh
parent 5b014b8496
commit 1eefab0cfa

View File

@ -47,7 +47,8 @@ class Comment extends DataObject {
if($comments) {
while($pageComment = $comments->nextRecord()) {
// create a new comment from the older page comment
$comment = new Comment($pageComment);
$comment = new Comment();
$comment->update($pageComment);
// set the variables which have changed
$comment->BaseClass = 'SiteTree';
@ -244,4 +245,4 @@ class Comment extends DataObject {
$this->Parent()->Title
);
}
}
}