From 69bb041c464f921ced937fab724dffbe56a50363 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 4 May 2011 04:59:28 +0000 Subject: [PATCH] scm: set disable a button if scm is not selected in project scm setting. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5625 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index dd7d709e2..3b96e7c5a 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -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 -- 2.39.5