summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 04:59:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-04 04:59:28 +0000
commit69bb041c464f921ced937fab724dffbe56a50363 (patch)
tree32fa8a854a99adee2843a8e81522beac677981b2 /app/controllers/repositories_controller.rb
parent19c6266a7d0f743fd217e9c339f261689fd8ecd8 (diff)
downloadredmine-69bb041c464f921ced937fab724dffbe56a50363.tar.gz
redmine-69bb041c464f921ced937fab724dffbe56a50363.zip
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
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb2
1 files changed, 1 insertions, 1 deletions
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