---
id: change/bcapps/12986
type: change
title: "#12986 Fix Work Center field persistence when auto-save is disabled"
summary: When auto-save is disabled, validating Subcontractor No. on the Work Center Card now saves pending changes before refreshing, preventing field values from being discarded.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - pageextension subc. work center card
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-23T01:11:43.908Z"
  flags: []
generated:
  at: "2026-10-28T00:16:46.912Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1a1f9b0fe342c7127ceb8d7e06ecd0ad989d5a6a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12986
    title: "microsoft/BCApps#12986: Fix Work Center field persistence when auto-save is disabled"
    date: "2026-10-21"
    commit: 1a1f9b0fe342c7127ceb8d7e06ecd0ad989d5a6a
    t: null
    quote: Change the refresh to save the record before updating the page.
links:
  learn: []
  objects:
    - object/pageextension/20506
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-responsibility-centers
      title: How to work with responsibility centers
      label: possibly related
      why: Documents responsibility centers and work center management setup
      by: model
number: 12986
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12986
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-21T12:34:14Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - Subcontracting
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 112
  deletions: 1
  al: 1
apps:
  - Subcontracting
objects_touched:
  - key: pageextension/20506
    page: pageextension/20506
    type: pageextension
    id: 20506
    name: Subc. Work Center Card
    app: Subcontracting
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13136
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13136
fixes_issues: []
work_items:
  - 651344
systems:
  - manufacturing
quote: Change the refresh to save the record before updating the page.
joined_against:
  major: "30"
  commit: eb2bfe5258a473c969a6b85cdc98ce8524408706
---

# #12986 Fix Work Center field persistence when auto-save is disabled

> When auto-save is disabled, validating Subcontractor No. on the Work Center Card now saves pending changes before refreshing, preventing field values from being discarded.

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

## What changed

- Validation of Subcontractor No. now saves the record before refreshing the page
- Pending changes like Unit Cost Calculation are preserved instead of being lost
- Subcontractor pricing actions remain immediately enabled or disabled based on field state
- Added UI regression tests covering field persistence and action state behavior
- Low-risk change with no schema or API modifications
- Behaviour changes for users or extensions.

## AL objects touched

- [Page extension 20506 "Subc. Work Center Card"](../../objects/pageextension/20506.md), Subcontracting: modified

## Also merged into

- [#13136](https://github.com/microsoft/BCApps/pull/13136) into `releases/29.x` on 2026-10-27

## Context

- Work items: AB#651344
- Labels: AL: Apps (W1), Subcontracting, Team: SCM
- Systems: manufacturing
- From the description: "Change the refresh to save the record before updating the page."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [How to work with responsibility centers](https://learn.microsoft.com/dynamics365/business-central/inventory-responsibility-centers) — possibly related: Documents responsibility centers and work center management setup (model-linked)

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