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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
dc4e2744
Commit
dc4e2744
authored
Dec 10, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue tracker service
parent
c4fa894d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
app/models/project_services/issue_tracker_service.rb
app/models/project_services/issue_tracker_service.rb
+7
-11
No files found.
app/models/project_services/issue_tracker_service.rb
View file @
dc4e2744
...
@@ -56,16 +56,12 @@ class IssueTrackerService < Service
...
@@ -56,16 +56,12 @@ class IssueTrackerService < Service
end
end
def
initialize_properties
def
initialize_properties
if
properties
.
nil
?
if
new_record
?
if
enabled_in_gitlab_config
if
enabled_in_gitlab_config
self
.
properties
=
{
self
.
title
=
issues_tracker
[
'title'
]
title:
issues_tracker
[
'title'
],
self
.
project_url
=
add_issues_tracker_id
(
issues_tracker
[
'project_url'
])
project_url:
add_issues_tracker_id
(
issues_tracker
[
'project_url'
]),
self
.
issues_url
=
add_issues_tracker_id
(
issues_tracker
[
'issues_url'
])
issues_url:
add_issues_tracker_id
(
issues_tracker
[
'issues_url'
]),
self
.
new_issue_url
=
add_issues_tracker_id
(
issues_tracker
[
'new_issue_url'
])
new_issue_url:
add_issues_tracker_id
(
issues_tracker
[
'new_issue_url'
])
}
else
self
.
properties
=
{}
end
end
end
end
end
end
...
@@ -98,8 +94,8 @@ class IssueTrackerService < Service
...
@@ -98,8 +94,8 @@ class IssueTrackerService < Service
def
enabled_in_gitlab_config
def
enabled_in_gitlab_config
Gitlab
.
config
.
issues_tracker
&&
Gitlab
.
config
.
issues_tracker
&&
Gitlab
.
config
.
issues_tracker
.
values
.
any?
&&
Gitlab
.
config
.
issues_tracker
.
values
.
any?
&&
issues_tracker
issues_tracker
end
end
def
issues_tracker
def
issues_tracker
...
...
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