Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
586a3291
Commit
586a3291
authored
Sep 18, 2019
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse Project#jira_tracker_active? in CloseService
parent
fd160a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/services/issues/close_service.rb
app/services/issues/close_service.rb
+1
-1
No files found.
app/services/issues/close_service.rb
View file @
586a3291
...
@@ -18,7 +18,7 @@ module Issues
...
@@ -18,7 +18,7 @@ module Issues
# The code calling this method is responsible for ensuring that a user is
# The code calling this method is responsible for ensuring that a user is
# allowed to close the given issue.
# allowed to close the given issue.
def
close_issue
(
issue
,
closed_via:
nil
,
notifications:
true
,
system_note:
true
)
def
close_issue
(
issue
,
closed_via:
nil
,
notifications:
true
,
system_note:
true
)
if
project
.
jira_tracker
?
&&
project
.
jira_service
.
active
&&
issue
.
is_a?
(
ExternalIssue
)
if
project
.
jira_tracker
_active?
&&
issue
.
is_a?
(
ExternalIssue
)
project
.
jira_service
.
close_issue
(
closed_via
,
issue
)
project
.
jira_service
.
close_issue
(
closed_via
,
issue
)
todo_service
.
close_issue
(
issue
,
current_user
)
todo_service
.
close_issue
(
issue
,
current_user
)
return
issue
return
issue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment