Skip to content
Snippets Groups Projects
Commit d644a64b authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by Ron Lucke
Browse files

CW: fix #1611 - wrong date because of null value (tasks)

Closes #1611

Merge request studip/studip!1213
parent f6b1acb3
No related branches found
No related tags found
No related merge requests found
...@@ -363,7 +363,7 @@ export default { ...@@ -363,7 +363,7 @@ export default {
let attributes = {}; let attributes = {};
attributes.renewal = this.currentDialogTask.attributes.renewal; attributes.renewal = this.currentDialogTask.attributes.renewal;
if (attributes.renewal === 'granted') { if (attributes.renewal === 'granted') {
attributes['renewal-date'] = new Date(this.currentDialogTask.attributes['renewal-date']).toISOString(); attributes['renewal-date'] = new Date(this.currentDialogTask.attributes['renewal-date'] || Date.now()).toISOString();
} }
this.updateTask({ this.updateTask({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment