diff options
Diffstat (limited to 'app/services/issues/reopen_service.rb')
-rw-r--r-- | app/services/issues/reopen_service.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/services/issues/reopen_service.rb b/app/services/issues/reopen_service.rb index e2b1b5400c7..12dbff57ec5 100644 --- a/app/services/issues/reopen_service.rb +++ b/app/services/issues/reopen_service.rb @@ -5,6 +5,8 @@ module Issues def execute(issue) return issue unless can?(current_user, :reopen_issue, issue) + before_reopen(issue) + if issue.reopen event_service.reopen_issue(issue, current_user) create_note(issue, 'reopened') @@ -21,8 +23,14 @@ module Issues private + def before_reopen(issue) + # Overriden in EE + end + def create_note(issue, state = issue.state) SystemNoteService.change_status(issue, issue.project, current_user, state, nil) end end end + +Issues::ReopenService.prepend_if_ee('EE::Issues::ReopenService') |