mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
BUGFIX Force the migrated comment to be inserted into the database.
This commit is contained in:
parent
5b014b8496
commit
1eefab0cfa
@ -47,7 +47,8 @@ class Comment extends DataObject {
|
|||||||
if($comments) {
|
if($comments) {
|
||||||
while($pageComment = $comments->nextRecord()) {
|
while($pageComment = $comments->nextRecord()) {
|
||||||
// create a new comment from the older page comment
|
// 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
|
// set the variables which have changed
|
||||||
$comment->BaseClass = 'SiteTree';
|
$comment->BaseClass = 'SiteTree';
|
||||||
|
Loading…
Reference in New Issue
Block a user