Skip to content

Commit

Permalink
Fix (refs redmine#13) - user's wip_limit doesn't get updated
Browse files Browse the repository at this point in the history
  • Loading branch information
samchen2009 committed Dec 28, 2012
1 parent f67b522 commit da685e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions plugins/ekanban/app/models/kanban.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ def wip
KanbanCard.open().by_user(self).in_progress().size
end

def wip_limit
id = CustomField.find_by_name("WIP limit").id
v = self.custom_value_for(id)
v.nil? ? 3 : v.value.to_i
end

end

class Principal < ActiveRecord::Base
Expand Down
6 changes: 0 additions & 6 deletions plugins/ekanban/db/migrate/011_add_wip_col_to_user.rb

This file was deleted.

0 comments on commit da685e7

Please sign in to comment.