修改作业提交项目时默认问空

This commit is contained in:
sw 2014-11-25 10:03:56 +08:00
parent d19bf06da4
commit 23da0a6dad
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ module HomeworkAttachHelper
memberships = User.current.memberships.all(:conditions => cond) memberships = User.current.memberships.all(:conditions => cond)
projects = memberships.map(&:project) projects = memberships.map(&:project)
not_have_project = [] not_have_project = []
not_have_project << "NO PROJECT" not_have_project << ""
not_have_project << 0 not_have_project << 0
type = [] type = []
type << not_have_project type << not_have_project