From 3b8bd6d454904dc05d13258f121ce4022955c2c1 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 25 Dec 2019 17:07:23 +0800 Subject: [PATCH] 1 --- app/controllers/shixuns_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 36a9e03ac..992bd87f8 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -911,7 +911,7 @@ class ShixunsController < ApplicationController @collaborators = @shixun.shixun_members.where("user_id != #{@shixun.user_id}") else begin - raise("必须选择一个用户才能更换管理员") if params[:user_id].blank? + raise("请先选择成员") if params[:user_id].blank? man_member = ShixunMember.where(:shixun_id => @shixun.id, :user_id => @shixun.user_id).first cha_member = ShixunMember.where(:user_id => params[:user_id], :shixun_id => @shixun.id).first if man_member && cha_member