Skip to content

Commit a4c364b

Browse files
committed
Fix (refs redmine#13) - user's wip_limit doesn't get updated
1 parent 5706964 commit a4c364b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plugins/ekanban/app/models/kanban.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def wip
145145
KanbanCard.open().by_user(self).in_progress().size
146146
end
147147

148+
def wip_limit
149+
id = CustomField.find_by_name("WIP limit").id
150+
v = self.custom_value_for(id)
151+
v.nil? ? 3 : v.value.to_i
152+
end
153+
148154
end
149155

150156
class Principal < ActiveRecord::Base

plugins/ekanban/db/migrate/011_add_wip_col_to_user.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)