Bug #971

Comments and trackbacks not imported from mt.

Added by robert-rojotek-com - 944 days ago. Updated 294 days ago.

Status :Assigned Start :
Priority :Normal Due date :
Assigned to :scott - % Done :

0%

Category :admin
Target version :-
Resolution :


Description

Comments and trackbacks weren't being loaded using the stable version of rails. Probably due to updates in rails land.

To get this working I changed 2 lines of code, and added another save.

old a.comments.create(c)

new: a.comments<<Comment.create(c)

old a.trackbacks.create(tb)

new: a.trackbacks<<Trackback.create(tb)

Then there was a save needed at the end of the loop. (the earlier save could be moved).

a.save

Associated revisions

Revision 1113
Added by scott 725 days ago

Fix sidebar defaults. Closes #971

History

12/05/2005 06:16 AM - scott -

  • Status changed from New to Assigned

01/01/2006 05:49 PM - scoop -

This is a Rails 1.0 issue.

Also available in: Atom PDF