Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-11 12:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-11 12:10:00 +0300
commit564919dfc6c6b352163d4c6dc01827a5f12ffc88 (patch)
tree9e91b8dde12a3054fffc513c6e0ab0400a039a88 /app/models/packages
parent2000704b7a6cc9eb37dd597ed03567265eda9308 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/packages')
-rw-r--r--app/models/packages/package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/packages/package.rb b/app/models/packages/package.rb
index 010e1835520..4ea127fc222 100644
--- a/app/models/packages/package.rb
+++ b/app/models/packages/package.rb
@@ -324,7 +324,7 @@ class Packages::Package < ApplicationRecord
return unless project
return unless follows_npm_naming_convention?
- if project.package_already_taken?(name, package_type: :npm)
+ if project.package_already_taken?(name, version, package_type: :npm)
errors.add(:base, _('Package already exists'))
end
end