Commit bb0a47d4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5868 from beautyfree/patch-1

Duplicate opened scope for issue
parents bea6eba8 984eb08c
......@@ -28,7 +28,7 @@ class Issue < ActiveRecord::Base
scope :of_group, ->(group) { where(project_id: group.project_ids) }
scope :of_user_team, ->(team) { where(project_id: team.project_ids, assignee_id: team.member_ids) }
scope :opened, -> { with_state(:opened) }
scope :opened, -> { with_state(:opened, :reopened) }
scope :closed, -> { with_state(:closed) }
attr_accessible :title, :assignee_id, :position, :description,
......@@ -56,9 +56,6 @@ class Issue < ActiveRecord::Base
state :closed
end
# Both open and reopened issues should be listed as opened
scope :opened, -> { with_state(:opened, :reopened) }
# Mentionable overrides.
def gfm_reference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment