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
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-16 06:16:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-16 06:16:18 +0300
commit555976016b899c8507cd58196e6c9f647fa6b19e (patch)
tree625368df60c700c5bc8bec2520b3524cfe42da00 /app
parent84025108bca604c1428d2cf6a6b69616ee90956c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/models/application_setting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb
index 99075f04fdd..9604948b7b2 100644
--- a/app/models/application_setting.rb
+++ b/app/models/application_setting.rb
@@ -514,7 +514,7 @@ class ApplicationSetting < MainClusterwide::ApplicationRecord
exclusion: { in: :restricted_visibility_levels, message: "cannot be set to a restricted visibility level" },
if: :should_prevent_visibility_restriction?
- validates_each :import_sources do |record, attr, value|
+ validates_each :import_sources, on: :update do |record, attr, value|
value&.each do |source|
unless Gitlab::ImportSources.options.value?(source)
record.errors.add(attr, _("'%{source}' is not a import source") % { source: source })