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
end
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
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