From 5bcc76d399b8b493f6184f3f765e483db76b0e21 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Tue, 25 Nov 2014 10:35:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=9C=E4=B8=9A=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=A1=B9=E7=9B=AE=E7=AC=AC=E4=B8=80=E9=A1=B9=E4=B8=BA?= =?UTF-8?q?=E8=AF=B7=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/homework_attach_helper.rb | 2 +- config/settings.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/homework_attach_helper.rb b/app/helpers/homework_attach_helper.rb index 52a2c398a..63332e564 100644 --- a/app/helpers/homework_attach_helper.rb +++ b/app/helpers/homework_attach_helper.rb @@ -60,7 +60,7 @@ module HomeworkAttachHelper memberships = User.current.memberships.all(:conditions => cond) projects = memberships.map(&:project) not_have_project = [] - not_have_project << "" + not_have_project << Setting.please_chose not_have_project << 0 type = [] type << not_have_project diff --git a/config/settings.yml b/config/settings.yml index ccc1cac9d..381e8a302 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -256,6 +256,8 @@ course_domain: default: course.trustie.net repository_domain: default: repository.trustie.net +please_chose: + default: 请选择 plugin_redmine_ckeditor: serialized: true default: --- !ruby/hash:ActiveSupport::HashWithIndifferentAccess