[TodoView] Use parents collection when creating a subtodo

Authored by poboiko on Mar 30 2020, 1:02 PM.

Description

[TodoView] Use parents collection when creating a subtodo

Summary:
When creating a subtodo of an existing task, it should belong to the same collection.

Apparenly, there was a typo: parent collection was determined, but not passed to createIncidence call.
Just fix it.

Test Plan:

  1. Open KOrganizer todo list, select an existing todo
  2. Enter new todo description in the text widget below the list, press Ctrl+Enter
  3. (without patch) It asks for a collection despite attempting to create a sub-todo
  4. (with patch) A sub-todo gets created in the same collection

Reviewers: dvratil

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D28434

Details

Committed
poboikoMar 30 2020, 3:48 PM
Differential Revision
D28434: [TodoView] Use parents collection when creating a subtodo
Parents
R76:3582ee4880e4: GIT_SILENT: Prepare 5.14.0 rc
Branches
Unknown
Tags
Unknown
References
tag: v20.03.90