code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#11121 Fix generation rule source table validation

Fixed source table validation for quality inspection generation rules to prevent clearing the source table through programmatic modifications while allowing legacy rules without a source table to remain editable.

Pull request · merged into main (BC30) on 2026-09-10 by 6CRIPT · 1 file (+12 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • OnModify now reads persisted generation rule data instead of relying on xRec
  • Prevents accidental clearing of source table on existing rules via programmatic changes
  • Legacy rules stored without source table remain editable
  • Temporary records keep previous validation behavior
  • Addresses issue AB#642736
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#642736
  • Labels: AL: Apps (W1), SCM, Team: SCM
  • Systems: development

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