]> source.dussan.org Git - redmine.git/commitdiff
scm: set disable a button if scm is not selected in project scm setting.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 04:59:28 +0000 (04:59 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 4 May 2011 04:59:28 +0000 (04:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5625 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index dd7d709e2d75ec1b2afcb68e0f4dc1db44034dbb..3b96e7c5a2b06fade2aa3e60c4c81ff0e8322ae0 100644 (file)
@@ -36,7 +36,7 @@ class RepositoriesController < ApplicationController
 
   def edit
     @repository = @project.repository
-    if !@repository
+    if !@repository && !params[:repository_scm].blank?
       @repository = Repository.factory(params[:repository_scm])
       @repository.project = @project if @repository
     end