diff options
Diffstat (limited to 'clients/cli/utils.c')
-rw-r--r-- | clients/cli/utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clients/cli/utils.c b/clients/cli/utils.c index 355f60c597..715d78ec5f 100644 --- a/clients/cli/utils.c +++ b/clients/cli/utils.c @@ -744,9 +744,12 @@ _output_selection_append (GArray *cols, return FALSE; nm_assert (selection->num == 1); } else { - nested = nm_meta_abstract_info_get_nested (selection_item->info, FALSE, NULL, &nested_to_free); + nested = nm_meta_abstract_info_get_nested (selection_item->info, + selection_item->selection_type == NM_META_SELECTION_TYPE_ALL, + NULL, + &nested_to_free); if (nested) { - selection = nm_meta_selection_create_all (nested, NM_META_SELECTION_TYPE_COMMON); + selection = nm_meta_selection_create_all (nested, selection_item->selection_type); nm_assert (selection && selection->num > 0); } else selection = NULL; |