Bug fix
git-svn-id: file:///home/svn/framework3/trunk@3984 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b5b87403d3
commit
eac4c77c1a
|
@ -10,18 +10,21 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
mlist.each do |m|
|
||||
|
||||
|
||||
if (m.name.downcase.index(terms.downcase))
|
||||
res << m
|
||||
next
|
||||
end
|
||||
|
||||
if (m.desc.downcase.index(terms.downcase))
|
||||
if (m.description.downcase.index(terms.downcase))
|
||||
res << m
|
||||
next
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
p res.length
|
||||
|
||||
res
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue