#721 redux - Port Search handles VLAN and MAC addr properly

This commit is contained in:
Oliver Gorwits
2020-06-29 19:00:05 +01:00
parent 170ea64b7e
commit 88ce0d7f9a
2 changed files with 27 additions and 20 deletions

View File

@@ -62,7 +62,7 @@ get '/search' => require_login sub {
->search({
-or => [
{name => $likeclause},
((!defined $mac or $mac->errstr)
(((!defined $mac) or $mac->errstr)
? \['mac::text ILIKE ?', $likeval]
: {mac => $mac->as_ieee}),
],