]> source.dussan.org Git - redmine.git/commitdiff
Switching SCM fails after validation error in "New repository" page (#27333).
authorGo MAEDA <maeda@farend.jp>
Sun, 10 Dec 2017 05:42:22 +0000 (05:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 10 Dec 2017 05:42:22 +0000 (05:42 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17105 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/repositories_helper.rb

index 314c0b29bd93995e5879cdc2c0bf0fa69a6849c0..435041b72dadac1cb1197d7e0b77d39b6af53b5a 100644 (file)
@@ -138,7 +138,7 @@ module RepositoriesHelper
     select_tag('repository_scm',
                options_for_select(scm_options, repository.class.name.demodulize),
                :disabled => (repository && !repository.new_record?),
-               :data => {:remote => true, :method => 'get'})
+               :data => {:remote => true, :method => 'get', :url => new_project_repository_path(repository.project)})
   end
 
   def with_leading_slash(path)