[29.0] - Bug 650939 - [Expense Agent] Deleting an itemized Expense Category shows misleading missing-subcategories confirmation - #11707
Conversation
Good Sense Reviewer - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThe change skips the missing-subcategory close confirmation while an itemized expense category is being deleted, so the category can be deleted after its subcategories are cascade-deleted. It also applies the same pattern to the expense-user close confirmation. The direction matches the reported scenario: the warning should protect retained setup records, not a record that is being deleted. The delete flag covers the expected successful delete path, but it is set before all delete paths are known to continue, which leaves one non-blocking edge case. Problem-solution fitFit: Strong The fix addresses the reported category deletion flow and keeps the existing validation for normal page close. The extra expense-user change follows the same UX pattern, but the new guard state should be made safe when a delete attempt is canceled or rejected. SuggestionsS1 (🟠 Moderate): Deleting flag can survive canceled deletes Risk assessment and necessityRisk: Low to moderate. The change is limited to setup-page delete and close prompts in Expense Agent, not posting, amounts, or persisted cascade logic. The main regression surface is suppressing setup warnings after a delete attempt that does not actually delete the record. Necessity: The category change is needed because deletion can legitimately remove the related subcategories before the page closes, making the old confirmation misleading. The scope is small, but the delete guard should track only a delete that really proceeds.
|
AB#650939