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
a5488215
Commit
a5488215
authored
Aug 07, 2020
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
f8af7854
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/models/service.rb
app/models/service.rb
+1
-1
No files found.
app/models/service.rb
View file @
a5488215
...
@@ -381,7 +381,7 @@ class Service < ApplicationRecord
...
@@ -381,7 +381,7 @@ class Service < ApplicationRecord
end
end
def
validate_belongs_to_project_or_group
def
validate_belongs_to_project_or_group
errors
.
add
(
:project_id
,
'The service
should belongs to a project or
group'
)
if
project_id
&&
group_id
errors
.
add
(
:project_id
,
'The service
cannot belong to both a project and a
group'
)
if
project_id
&&
group_id
end
end
def
cache_project_has_external_issue_tracker
def
cache_project_has_external_issue_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