Skip to content

Commit dbe087e

Browse files
committed
Fix: VT preferences
When checking the preferences for VTs set by the user, it used the value provided by the script itself instead the one provided by the user (except for type checkbox), so many values were not set to an empty string.
1 parent 9261611 commit dbe087e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/openvas/pref_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ where
113113
let value_aux: String = if class == *"checkbox" {
114114
bool_to_str(&pref.value)
115115
} else {
116-
value
116+
pref.value.to_string()
117117
};
118118

119119
pref_list.insert(

0 commit comments

Comments
 (0)