-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix setting/displaying timeout in EditNvtDetailsDialog #3057
Conversation
The timeout is no longer parsed as string from the xml, which makes this function obsolete and removing it prevents crashes due to the call of String.prototype.trim()
Codecov Report
@@ Coverage Diff @@
## gsa-20.08 #3057 +/- ##
=============================================
- Coverage 53.74% 53.73% -0.01%
=============================================
Files 1073 1073
Lines 25912 25909 -3
Branches 7375 7374 -1
=============================================
- Hits 13926 13923 -3
Misses 10882 10882
Partials 1104 1104
Continue to review full report at Codecov.
|
Fix setting/displaying timeout in EditNvtDetailsDialog (backport #3057)
Fix setting/displaying timeout in EditNvtDetailsDialog (backport #3057)
What:
Remove usage of
convertTimeout()
in EditNvtDetailsDialogWhy:
convertTimeout()
used String.protoype.trim() which crashes since the timeout is parsed asnumber
. Since the new parsing, this function is obsolete anyway.Fixes AP-1004
How:
Manual tests to set and unset the timeout value and re-open the dialog.
Checklist: