Fix bug(excel).
This commit is contained in:
parent
5386bcfb97
commit
a816dcd88b
|
@ -55,6 +55,7 @@ wb.add_worksheet(name: "Project") do |sheet|
|
||||||
row1 << "select"
|
row1 << "select"
|
||||||
t = ""
|
t = ""
|
||||||
ProjectType.asc(:created_at).each_with_index do |jl,i|
|
ProjectType.asc(:created_at).each_with_index do |jl,i|
|
||||||
|
next if jl.title.blank?
|
||||||
t = t + "#{i}" + " -> " + jl.title + ", "
|
t = t + "#{i}" + " -> " + jl.title + ", "
|
||||||
end
|
end
|
||||||
if ProjectType.count > 0
|
if ProjectType.count > 0
|
||||||
|
|
Loading…
Reference in New Issue