---
id: change/bcapps/9077
type: change
title: "#9077 [Quality Management] Bug 620326: Reset IsChangingStatus on handled Reopen/Finish early-exit"
summary: Quality Management's Reopen/Finish procedures now properly reset the IsChangingStatus flag when a subscriber handles the OnBefore events, preventing improper modifications to completed inspections.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table qlty. inspection header
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:11.545Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f65937f59cf292e093cdd84c5f88518be38faec1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9077
    title: "microsoft/BCApps#9077: [Quality Management] Bug 620326: Reset IsChangingStatus on handled Reopen/Finish early-exit"
    date: "2026-08-19"
    commit: f65937f59cf292e093cdd84c5f88518be38faec1
    t: null
    quote: Reset the flag before the handled exit.
links:
  learn: []
  objects:
    - object/table/20405
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9077
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9077
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-19T20:07:56Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 130
  deletions: 2
  al: 1
apps:
  - Quality Management
objects_touched:
  - key: table/20405
    page: table/20405
    type: table
    id: 20405
    name: Qlty. Inspection Header
    app: Quality Management
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620326
systems:
  - development
quote: Reset the flag before the handled exit.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9077 [Quality Management] Bug 620326: Reset IsChangingStatus on handled Reopen/Finish early-exit

> Quality Management's Reopen/Finish procedures now properly reset the IsChangingStatus flag when a subscriber handles the OnBefore events, preventing improper modifications to completed inspections.

[Pull request](https://github.com/microsoft/BCApps/pull/9077) · merged into `main` (BC30) on 2026-08-19 by alexei-dobriansky · 3 files (+130 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- IsChangingStatus flag was stuck true when OnBefore event handlers set IsHandled=true
- This caused TestStatusOpen validation to be skipped on later modifications
- Flag is now reset before early exit when event is handled
- Adds manual subscriber test to verify the fix
- Prevents unwanted state changes to finished inspections
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 20405 "Qlty. Inspection Header"](../../objects/table/20405.md), Quality Management: modified

## Context

- Work items: AB#620326
- Labels: AL: Apps (W1), Team: SCM
- Systems: development
- From the description: "Reset the flag before the handled exit."

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
