Skip to content

Commit

Permalink
Fix: Inconsistencies due to ALTREP parameter (#1916)
Browse files Browse the repository at this point in the history
* delete all parameters of description property upon modification

Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
  • Loading branch information
max65482 authored Jan 31, 2022
1 parent 4febae5 commit bffcd45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/models/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ export default class Task {
}

set note(note) {
this.vtodo.updatePropertyWithValue('description', note)
// To avoid inconsistent property parameters (bug #3863 in nextcloud/calendar), delete the property, then recreate
this.vtodo.removeProperty('description')
this.vtodo.addPropertyWithValue('description', note)
this.updateLastModified()
this._note = this.vtodo.getFirstPropertyValue('description') || ''
}
Expand Down

0 comments on commit bffcd45

Please sign in to comment.