Attachments list empty after attach_files

Added by Brian Crowell over 11 years ago

I'm researching #2770, but I'm not a Ruby or Rails developer, so I think I need some help.

What causes the problem is that after attach_files is called during issue creation (source:trunk/app/controllers/issues_controller.rb#L138) the attachments list is empty. Skipping the cache on issue.attachments doesn't help-- it's like the records just don't exist yet.

Is there a delay after creating stuff like that? Why would the attachments list be empty on the issue object?