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
This commit is contained in:
parent
19c6266a7d
commit
69bb041c46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue