diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-03 18:07:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-03 18:07:15 +0300 |
commit | fdd5c2a476dade1dd0874e37ab0c0b9ff88381ab (patch) | |
tree | 4abb334a7f0fab9698e20e2e6e672abc66c37113 /app/models/label.rb | |
parent | a3759fc2e1f8aa1493840ab0d4ebd4a2e5f495aa (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/label.rb')
-rw-r--r-- | app/models/label.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/label.rb b/app/models/label.rb index 8637df72fed..aa53c0e0f3f 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -285,7 +285,7 @@ class Label < ApplicationRecord def label_format_reference(format = :id) raise StandardError, 'Unknown format' unless [:id, :name].include?(format) - if format == :name && name.exclude?('"') + if format == :name && !name.include?('"') %("#{name}") else id |