diff --git a/Changes b/Changes index 2759c7ce..ddc87c38 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ * #408 improvements to MakeRancidConf (earendilfr) * #410 improvements to Undiscovered Neighbors report + * device port search will match on Description as well as Port 2.039028 - 2018-05-05 diff --git a/lib/App/Netdisco/Web/Plugin/Device/Ports.pm b/lib/App/Netdisco/Web/Plugin/Device/Ports.pm index e6e1b4a9..b5276052 100644 --- a/lib/App/Netdisco/Web/Plugin/Device/Ports.pm +++ b/lib/App/Netdisco/Web/Plugin/Device/Ports.pm @@ -63,11 +63,12 @@ get '/ajax/content/device/ports' => require_login sub { } if (($prefer eq 'port') or not $prefer and - $set->search({'me.port' => $f})->count) { + $set->search({-or => ['me.port' => $f, 'me.descr' => $f]})->count) { $set = $set->search({ -or => [ 'me.port' => $f, + 'me.descr' => $f, 'me.slave_of' => $f, ], });