Commit a5488215 authored by Robert Speicher's avatar Robert Speicher

Apply 1 suggestion(s) to 1 file(s)

parent f8af7854
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment