hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 46 forks source link

500 error when mark as generated #43

Closed brianveltman closed 11 years ago

brianveltman commented 11 years ago

When I mark a release as generated it returns a 500 error.

Processing by ReleaseNotesController#mark_version_as_generated as HTML Parameters: {"id"=>"22", "authenticity_token"=>"****"} Current user: brian (id=17) Completed 500 Internal Server Error in 33ms

NoMethodError (undefined method to_i' for #<VersionCustomField:0xb58daa58>): app/models/custom_value.rb:23:ininitialize'

Using redmine 2.2.0

hdgarrood commented 11 years ago

Ok, I'll have a look. Thanks for the bug report.

JohnArcher commented 11 years ago

I get this error when I want to add a release notes text to a ticket:

Processing by ReleaseNotesController#new as HTML
  Parameters: {"issue_id"=>"120"}
  Current user: xxx (id=4)
Completed 500 Internal Server Error in 496ms

NoMethodError (undefined method `to_i' for #<Issue:0x000000069cbca0>):

I am usring redmine 2.2.1

hdgarrood commented 11 years ago

Could one of you show me your environment (Administration > Information)? Our 'real' Redmine instance is still on 2.1.0.stable (although currently I'm developing against redmine trunk) so that might be the problem...

JohnArcher commented 11 years ago

This is my environment:

Environment: Redmine version 2.2.1.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.11 Environment production Database adapter Mysql2 Redmine plugins: redmine_knowledgebase 2.2.0 redmine_release_notes 1.2.0

hdgarrood commented 11 years ago

Thanks john, I'll try to take a look at this in the next week or so.

Riwels commented 11 years ago

Hi. I have the same issue, but in 2.1.6.

NoMethodError (undefined method to_i' for #<IssueCustomField:0xc0e377c>): app/models/custom_value.rb:23:ininitialize'

Environment: Redmine version 2.1.6.stable.11223 Ruby version 1.9.3 (i486-linux) Rails version 3.2.11 Environment production Database adapter Mysql2 Redmine plugins: AgileDwarf 0.0.3 redmine_banner 0.0.8 redmine_code_review 0.6.1 redmine_didyoumean 1.2.0 redmine_omniauth_google 0.0.1 redmine_release_notes 1.2.0 timelog_timer 2.0.0

Thank you very much for the plugin. It's very usefull. Regards.

hdgarrood commented 11 years ago

Thanks riwels :)

hdgarrood commented 11 years ago

this is now fixed in the refactoring branch. unfortunately it's not yet ready to be merged in to master