项目 版本 和 版本库 标签改动

This commit is contained in:
lizanle 2015-04-16 15:08:46 +08:00
parent 10bd7c2855
commit 9621c35e8b
1 changed files with 2 additions and 3 deletions

View File

@ -325,16 +325,15 @@ class ProjectsController < ApplicationController
@wiki ||= @project.wiki @wiki ||= @project.wiki
@select_tab = params[:tab] @select_tab = params[:tab]
#版本库逻辑由于没有new操作了所以跳到项目配置就new一个版本库 # 处理从新建版本库返回来的错误信息
if !params[:repository_error_message].to_s.blank? if !params[:repository_error_message].to_s.blank?
html = "" html = ""
errors = params[:repository_error_message].flatten errors = params[:repository_error_message].flatten
errors.each do |error| errors.each do |error|
###by xianbo # 版本库路径为空的错误信息不予提示
if(error!=l(:label_repository_path_not_null)) if(error!=l(:label_repository_path_not_null))
html << error << ";" html << error << ";"
end end
###xianbo
end end
if params[:repository] == "pswd_is_null" if params[:repository] == "pswd_is_null"
html << l(:label_password_not_null)<< ";" html << l(:label_password_not_null)<< ";"