From: Toshi MARUYAMA Date: Wed, 4 May 2011 04:59:28 +0000 (+0000) Subject: scm: set disable a button if scm is not selected in project scm setting. X-Git-Tag: 1.2.0~264 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69bb041c464f921ced937fab724dffbe56a50363;p=redmine.git 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 --- 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