修改不选择项目时的<<NULL>>为 NO PROJECT
This commit is contained in:
parent
287e9151a2
commit
06a513b2ee
|
@ -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 << "<<NULL>>"
|
not_have_project << "NO PROJECT"
|
||||||
not_have_project << 0
|
not_have_project << 0
|
||||||
type = []
|
type = []
|
||||||
type << not_have_project
|
type << not_have_project
|
||||||
|
|
Loading…
Reference in New Issue