项目版本库错误提示信息设置为flash.now[:error]

This commit is contained in:
ouyangxuhua 2015-09-08 17:31:16 +08:00
parent 966bd8f94c
commit a7f2f0a6d2
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class ProjectsController < ApplicationController
if params[:repository] == "pswd_is_null" if params[:repository] == "pswd_is_null"
html << l(:label_password_not_null) html << l(:label_password_not_null)
end end
flash[:error] = html if !html.to_s.blank? flash.now[:error] = html if !html.to_s.blank?
end end
scm = params[:repository_scm] || (Redmine::Scm::Base.all & Setting.enabled_scm).first scm = params[:repository_scm] || (Redmine::Scm::Base.all & Setting.enabled_scm).first
@repository = Repository.factory(scm) @repository = Repository.factory(scm)