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
Jérome Perrin
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
end
def
initialize_properties
if
properties
.
nil
?
if
new_record
?
if
enabled_in_gitlab_config
self
.
properties
=
{
title:
issues_tracker
[
'title'
],
project_url:
add_issues_tracker_id
(
issues_tracker
[
'project_url'
]),
issues_url:
add_issues_tracker_id
(
issues_tracker
[
'issues_url'
]),
new_issue_url:
add_issues_tracker_id
(
issues_tracker
[
'new_issue_url'
])
}
else
self
.
properties
=
{}
self
.
title
=
issues_tracker
[
'title'
]
self
.
project_url
=
add_issues_tracker_id
(
issues_tracker
[
'project_url'
])
self
.
issues_url
=
add_issues_tracker_id
(
issues_tracker
[
'issues_url'
])
self
.
new_issue_url
=
add_issues_tracker_id
(
issues_tracker
[
'new_issue_url'
])
end
end
end
...
...
@@ -98,8 +94,8 @@ class IssueTrackerService < Service
def
enabled_in_gitlab_config
Gitlab
.
config
.
issues_tracker
&&
Gitlab
.
config
.
issues_tracker
.
values
.
any?
&&
issues_tracker
Gitlab
.
config
.
issues_tracker
.
values
.
any?
&&
issues_tracker
end
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