NoMethodError on Save in 1.0.0

Added by Shane Willcox over 7 years ago

Hi all,

I'v got a problem with 1.0.0 that's driving me nuts. I've just upgraded using bitnami-redmine-1.0.0-0-module-linux-installer.bin and everything went well (apart from some compatibility problems with the actionwebservice and gloc-1.1.0 plugins, finally having to ditch them).

Everything looks good on the surface, until someone tries to save something - an issue, a wiki page, whatever, at which point they get a 500 'Internal error'. This is what gets logged for an issue:

NoMethodError (undefined method `unsaved_attachments' for #<Issue:0xb6318fec>):
app/models/attachment.rb:161:in `attach_files'
app/models/issue.rb:499:in `save_issue_with_child_records'
app/models/issue.rb:487:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:181:in `update'

An this for a wiki update:

NoMethodError (undefined method `unsaved_attachments' for #<WikiPage:0xb6122314>):
app/models/attachment.rb:161:in `attach_files'
app/controllers/wiki_controller.rb:91:in `edit'

I've sanity checked everything I can think of without any success. Does anyone have any ideas? Any pointers would be very much appreciated.

Thanks