-
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 unable to edit schedules with number only name #2914
Conversation
Codecov Report
@@ Coverage Diff @@
## gsa-21.04 #2914 +/- ##
==========================================
Coverage 53.83% 53.84%
==========================================
Files 1075 1075
Lines 26226 26250 +24
Branches 7491 7506 +15
==========================================
+ Hits 14118 14133 +15
- Misses 10993 11000 +7
- Partials 1115 1117 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add new changelog entries to the top of the list
When adding a new schedule with a numbers only name `1234` and daily re occurrence and trying to edit the new schedule than a: ``` TypeError: e.replace is not a function ``` occurs because name is a number and not a string. To fix that name.toString() is called to explicitly cast it to string.
Using a template literal for converting an object to string is easier to read and imho safer to do.
Fix unable to edit schedules with number only name (backport #2914)
Fix unable to edit schedules with number only name (backport #2914)
When adding a new schedule with a numbers only name
1234
and dailyre occurrence and trying to edit the new schedule than a:
occurs because name is a number and not a string.
To fix that name.toString() is called to explicitly cast it to string.
What:
Why:
How:
Checklist: