show all members of lag when searching for lag master

This commit is contained in:
Oliver Gorwits
2014-01-13 13:35:54 +00:00
parent 86a9854f39
commit 14f9eb01ad

View File

@@ -63,7 +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 = $set->search({'me.port' => $f});
$set = $set->search({
-or => [
'me.port' => $f,
'me.slave_of' => $f,
],
});
}
else {
$set = $set->search({'me.name' => $f});