Read about our upcoming Code of Conduct on this issue

Commit b97bcf90 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'backport-ee-4644-geo-selective-sync-by-shard' into 'master'

Backport changes in the application settings helper to CE

See merge request gitlab-org/gitlab-ce!16801
......@@ -96,12 +96,12 @@ def key_restriction_options_for_select(type)
def repository_storages_options_for_select
def repository_storages_options_for_select(selected)
options = do |name, storage|
["#{name} - #{storage['path']}", name]
options_for_select(options, @application_setting.repository_storages)
options_for_select(options, selected)
def sidekiq_queue_options_for_select
......@@ -537,7 +537,8 @@
= f.label :repository_storages, 'Storage paths for new projects', class: 'control-label col-sm-2'
= :repository_storages, repository_storages_options_for_select, {include_hidden: false}, multiple: true, class: 'form-control'
= :repository_storages, repository_storages_options_for_select(@application_setting.repository_storages),
{include_hidden: false}, multiple: true, class: 'form-control'
Manage repository storage paths. Learn more in the
= succeed "." do
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