NoMethodError in IssuesController#create or update
Added by sk 94 about 13 years ago
Hi,
i've just upgraded redmine to 1.2 following the wiki
http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
everything runs ok except when adding or editing issues, documents, wiki, etc..
i've got a redmine 500 error : undefined method `unsaved_attachments' for #<Issue:0x7f949387fa08>
when i go back to the issues list, the issue had been created and files are uploaded ok
any idea ?
thanks in advance
Regards
Application trace:
/var/lib/gems/1.8/gems/activerecord-2.3.11/lib/active_record/attribute_methods.rb:260:in `method_missing' /usr/share/redmine-1.2/app/models/attachment.rb:161:in `attach_files' /usr/share/redmine-1.2/app/controllers/issues_controller.rb:140:in `create'
Log:
NoMethodError (undefined method `unsaved_attachments' for #<Issue:0x7f10fd8be290>): app/models/attachment.rb:161:in `attach_files' app/controllers/issues_controller.rb:140:in `create' /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:158:in `each' /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:285:in `new' /usr/lib/ruby/1.8/mongrel.rb:285:in `run' /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize' /usr/lib/ruby/1.8/mongrel.rb:268:in `new' /usr/lib/ruby/1.8/mongrel.rb:268:in `run' Rendering rescues/layout (internal_server_error)
application's environment:
Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.3.5 Rack version 1.1.1 Rails version 2.3.11 Active Record version 2.3.11 Active Resource version 2.3.11 Action Mailer version 2.3.11 Active Support version 2.3.11 Application root /usr/share/redmine-1.2 Environment production Database adapter mysql Database schema version 20110511000000