Skip to content

Bug 620326: Reset IsChangingStatus on handled Reopen/Finish early-exit#9077

Draft
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/620326-EASY-QualityIsChangingStatusReset
Draft

Bug 620326: Reset IsChangingStatus on handled Reopen/Finish early-exit#9077
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/620326-EASY-QualityIsChangingStatusReset

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fixes AB#620326

ReopenInspection and FinishInspectionAndPrompt set IsChangingStatus := true before firing the OnBefore... integration event. When a subscriber set IsHandled := true the procedures exited before the IsChangingStatus := false cleanup, leaving the flag stuck true so a later OnModify skipped TestStatusOpen() and a finished inspection could be modified. Reset the flag before the handled exit. Adds a manual subscriber test codeunit (139973) and two tests.

ReopenInspection and FinishInspectionAndPrompt set IsChangingStatus := true
before firing OnBeforeReopenInspection / OnBeforeFinishInspection. When a
subscriber set IsHandled := true the procedures exited before the
IsChangingStatus := false cleanup, leaving the guard stuck true so a later
OnModify skipped TestStatusOpen and a finished inspection could be modified.
Reset the guard before the handled exit. Adds a manual subscriber test codeunit
and two tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Jul 3, 2026
@alexei-dobriansky alexei-dobriansky added the SCM GitHub request for SCM area label Jul 3, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 3, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant