Skip to content

Commit bffcd45

Browse files
authored
Fix: Inconsistencies due to ALTREP parameter (#1916)
* delete all parameters of description property upon modification Signed-off-by: Maximilian Martin <[email protected]>
1 parent 4febae5 commit bffcd45

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/models/task.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ export default class Task {
366366
}
367367

368368
set note(note) {
369-
this.vtodo.updatePropertyWithValue('description', note)
369+
// To avoid inconsistent property parameters (bug #3863 in nextcloud/calendar), delete the property, then recreate
370+
this.vtodo.removeProperty('description')
371+
this.vtodo.addPropertyWithValue('description', note)
370372
this.updateLastModified()
371373
this._note = this.vtodo.getFirstPropertyValue('description') || ''
372374
}

0 commit comments

Comments
 (0)