mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-22 02:40:04 +00:00
fix bug in search with group option
This commit is contained in:
parent
4c9c4e21f6
commit
fc8e5e7115
1 changed files with 3 additions and 3 deletions
|
@ -242,12 +242,12 @@ class MPW
|
||||||
def list(options={})
|
def list(options={})
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
search = options[:search].to_s.downcase
|
search = options[:search].to_s.downcase
|
||||||
group = options[:group].to_s.downcase
|
group = options[:group].to_s.downcase
|
||||||
|
|
||||||
@data.each do |item|
|
@data.each do |item|
|
||||||
next if item.empty?
|
next if item.empty?
|
||||||
next if not group.empty? and not group.eql?(item.group.downcase)
|
next if not group.empty? and not group.eql?(item.group.to_s.downcase)
|
||||||
|
|
||||||
host = item.host.to_s.downcase
|
host = item.host.to_s.downcase
|
||||||
comment = item.comment.to_s.downcase
|
comment = item.comment.to_s.downcase
|
||||||
|
|
Loading…
Add table
Reference in a new issue