---
id: change/bcapps/10065
type: change
title: "#10065 [Quality Management] Quality Inspection User assignment fixes"
summary: Fixes a table relation error when manually selecting an assigned user on a quality inspection, and shows a self-assignment notification when modifying an inspection that has no assigned user.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit qlty. permission mgmt.
  - table qlty. inspection header
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:45.380Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f86c5eef28b8770ae2e02970d1d0bec607cbb71b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10065
    title: "microsoft/BCApps#10065: [Quality Management] Quality Inspection User assignment fixes"
    date: "2026-08-17"
    commit: f86c5eef28b8770ae2e02970d1d0bec607cbb71b
    t: null
    quote: Resolved a table relation error that occurred when manually selecting an assigned user.
links:
  learn: []
  objects:
    - object/codeunit/20406
    - object/table/20405
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10065
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10065
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-17T10:46:56Z"
author: JakovljevicDusan
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: 5
  additions: 115
  deletions: 45
  al: 2
apps:
  - Quality Management
objects_touched:
  - key: codeunit/20406
    page: codeunit/20406
    type: codeunit
    id: 20406
    name: Qlty. Permission Mgmt.
    app: Quality Management
    status: modified
  - 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:
  - 642612
  - 642613
systems:
  - development
quote: Resolved a table relation error that occurred when manually selecting an assigned user.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10065 [Quality Management] Quality Inspection User assignment fixes

> Fixes a table relation error when manually selecting an assigned user on a quality inspection, and shows a self-assignment notification when modifying an inspection that has no assigned user.

[Pull request](https://github.com/microsoft/BCApps/pull/10065) · merged into `main` (BC30) on 2026-08-17 by JakovljevicDusan · 5 files (+115 -45), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Manually selecting an assigned user no longer raises a table relation error
- Modifying an unassigned quality inspection now prompts a self-assignment notification
- Changes in Qlty. Inspection Header table and Qlty. Permission Mgmt. codeunit
- Tests for user assignment added to the misc test codeunit, with some tests moved out of the test table codeunit
- Behaviour changes for users or extensions.

## AL objects touched

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

## Context

- Work items: AB#642612, AB#642613
- Labels: AL: Apps (W1), Team: SCM
- Systems: development
- From the description: "Resolved a table relation error that occurred when manually selecting an assigned user."

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).
