samchen2009 / ekanban

a kanban plugin for redmine
102 stars 42 forks source link

Internal error when creating a New issue where assignee is a group #52

Open douwefaber opened 10 years ago

douwefaber commented 10 years ago

When creating a new issue where the assignee is a group for which I created a WIP limit I get an error.

NoMethodError (undefined method select!' for #<ActiveRecord::Relation:0x7fab4e3727a0>): app/controllers/issues_controller.rb:141:increate'

prmartinuk commented 10 years ago

What version of Ruby are you using? select! is a comparably recent addition to the Ruby standard libraries (the function was added in March 2010).

douwefaber commented 10 years ago

I'm using ruby 1.8.7 (2011-06-30 patchlevel 352) on Ubuntu server 12.04 x86_64

prmartinuk commented 10 years ago

I think that is the problem as I don't think select! was put into a formal Ruby release until 1.9.2.

If you don't want to upgrade your Ruby installation then I think there might be a very easy workaround.

If this doesn't work then let me know as there is a code change that could be made instead.

wonhoseo commented 10 years ago

This constraint was set at lib/ekanban/issue_patch.rb line 57: validates_presence_of :assigned_to. from #23