From 7a977f0ddd0b1a28ad8273d603fe9aaccaf3a794 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Sat, 8 Feb 2014 21:26:40 -0500 Subject: [PATCH] Check NetBIOS for results when searching nodes by MAC. Use has_rows to check for results rather than count. --- Netdisco/lib/App/Netdisco/Web/Plugin/Search/Node.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Node.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Node.pm index fdef9530..28280cb2 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Node.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Search/Node.pm @@ -73,9 +73,10 @@ ajax '/ajax/content/search/node' => require_login sub { } ); - return unless $sightings->count - or $ips->count - or $ports->count; + return unless $sightings->has_rows + or $ips->has_rows + or $ports->has_rows + or $netbios->has_rows; template 'ajax/search/node_by_mac.tt', { ips => $ips,