Skip to content

Commit

Permalink
Merge pull request #2914 from nichtsfrei/gsa-21.04
Browse files Browse the repository at this point in the history
Fix unable to edit schedules with number only name
  • Loading branch information
bjoernricks authored May 17, 2021
2 parents a2503c8 + e948448 commit a8e2af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Use greenbone sensor as default scanner type when opening the dialog if available [#2867](https://github.com/greenbone/gsa/pull/2867)

### Fixed
- Fixed number-only names within schedules/dialog [#2914](https://github.com/greenbone/gsa/pull/2914)
- Fixed changing Trend and Select for NVT-families and whole selection only [#2905](https://github.com/greenbone/gsa/pull/2905)
- Fixed missing name for CVE results on result detailspage [#2892](https://github.com/greenbone/gsa/pull/2892)
- Fixed setting secret key in RADIUS dialog [#2891](https://github.com/greenbone/gsa/pull/2891)
Expand Down
5 changes: 4 additions & 1 deletion gsa/src/web/pages/schedules/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ class ScheduleDialog extends React.Component {
interval: isPreDefined ? 1 : interval,
monthdays: setMonthydays ? monthdays : undefined,
weekdays: setWeekdays ? weekdays : undefined,
summary: name,
// convert name to string explicitly to not run into:
// `TypeError: e.replace is not a function`
// when name is just numbers.
summary: `${name}`,
startDate,
},
timezone,
Expand Down

0 comments on commit a8e2af8

Please sign in to comment.