Just for reference, this is the block of code I've put on forum restore, when recreating that single discussion/initial post in order to copy all the files from intro to post. Seems to be working:
Eloy Lafuente (stronk7)
31 July 2010 at 00:28
seems that forum_insert/update_instance() are the ones creating the single discussion (and forgetting about files).
Was testing restore of single-discussion forums when detected this happening:
1) create one single-discussion forum.
2) navigate to it. The information from the forum (intro...) is reused as (single) discussion/post.
BUT, files in discussion, are pointing to user draftarea (aren't copied from mod_forum/intro to mod_forum/post). So they are lost.
Ciao
PS: Exactly same happens if you re-edit the forum... when their contents are copied again to single discussion/post, files aren't copied.