Skip to content

Commit 4226e51

Browse files
bjoernricksgreenbonebot
authored andcommitted
Fix: Use correct default sort field for <get_nvts>
With greenbone/gvmd#2682 the `.` syntax got removed.
1 parent 2d1c99d commit 4226e51

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/gsad_gmp.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8525,7 +8525,7 @@ get_config_family (gvm_connection_t *connection, credentials_t *credentials,
85258525
" family=\"%s\" timeout=\"1\" preference_count=\"1\""
85268526
" skip_cert_refs=\"1\" skip_tags=\"1\" lean=\"1\""
85278527
" sort_field=\"%s\" sort_order=\"%s\"/>",
8528-
config_id, family, sort_field ? sort_field : "nvts.name",
8528+
config_id, family, sort_field ? sort_field : "name",
85298529
sort_order ? sort_order : "ascending")
85308530
== -1)
85318531
{
@@ -8643,8 +8643,7 @@ edit_config_family_all_gmp (gvm_connection_t *connection,
86438643
" lean=\"1\""
86448644
" sort_field=\"%s\""
86458645
" sort_order=\"%s\"/>",
8646-
family, config_id,
8647-
sort_field ? sort_field : "nvts.name",
8646+
family, config_id, sort_field ? sort_field : "name",
86488647
sort_order ? sort_order : "ascending")
86498648
== -1)
86508649
{
@@ -8804,8 +8803,7 @@ get_config_nvt_gmp (gvm_connection_t *connection, credentials_t *credentials,
88048803
" config_id=\"%s\" nvt_oid=\"%s\""
88058804
" details=\"1\" preferences=\"1\""
88068805
" sort_field=\"%s\" sort_order=\"%s\"/>",
8807-
config_id, nvt,
8808-
sort_field ? sort_field : "nvts.name",
8806+
config_id, nvt, sort_field ? sort_field : "name",
88098807
sort_order ? sort_order : "ascending")
88108808
== -1)
88118809
{

0 commit comments

Comments
 (0)