Files
huly-platform/plugins
4215717e1d fix(tracker): parentIssue prop overrides draft when reopening create issue modal (#10616)
* fix(tracker): parentIssue prop overrides draft when reopening create issue modal

When creating a sub-task, dismissing the modal via backdrop saves a
draft including the parentIssue. On the next open (for a different
parent), getDefaultObjectFromDraft() spreads the saved draft first but
all explicit props (status, priority, assignee, component, milestone)
correctly override the draft values. parentIssue was the only prop not
included in that override list, so the draft's stale parentIssue always
won, attaching the new sub-task to the previously opened parent.

Added parentIssue to the override spread so an explicitly passed parent
always takes precedence over any saved draft value.

Fixes #10348

Signed-off-by: SaiVaraprasad Medapati <varaprasadreddy9676@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tracker): drop stale SubIssues import change

Signed-off-by: SaiVaraprasad Medapati <varaprasadreddy9676@gmail.com>

---------

Signed-off-by: SaiVaraprasad Medapati <varaprasadreddy9676@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 12:52:33 +07:00
..
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2026-03-10 10:24:21 +07:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-11-26 23:24:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-11-26 23:24:41 +05:00
2025-12-18 00:40:41 +05:00