Skip to content

fix: a pluggable widget value's null template is not carried over - #2746

Merged
ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv
Dec 2, 2026
Merged

ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Fixes #2732 (upstream mendixlabs#2006).

Problem

create or modify page replaced a Data grid 2 attribute column with the same column as ShowContentAs: customContent. check and exec passed, then mx check reported CE0463 on the grid. bson dump --compare against the same page built by create page shows one difference: the column's tooltip. Data grid 2 hides it for custom content, and create page writes it null. The modify kept the empty Forms$ClientTemplate the attribute column had.

Cause: canon.CarryUnexpressed puts a stored empty ClientTemplate back where the writer writes null. That carry exists for Studio Pro's unset screen-reader label (#1897), where null and empty both mean "no label". Inside a pluggable widget's CustomWidgets$WidgetValue they are two different states: the writer chooses null for a property the widget's editorConfig hides, and an empty template for one it shows unset (#574, #931).

Fix

That carry skips CustomWidgets$WidgetValue elements. The screen-reader label carry on built-in widgets is unchanged.

Not in this PR

A page already in this state is not repaired by re-running the statement. When the statement describes the same widget, the stored pluggable passes through as stored. mxcli fix widgets does not reset it either (mx update-widgets reports the model in sync). That repair belongs with #2507.

Evidence

  • Test first: modelsdk/canon/unexpressed_widgetvalue_2732_test.go failed before the fix ("a real change was elided"). The control, the screen-reader label carry, still elides.
  • Live, Mendix 11.12.6, the reporter's two-step script: CE0463 before the fix; after it, a fresh create followed by the modify gives no error on that grid, and re-executing the describe output reports Unchanged.
  • make ci-local passed.

Generated by Claude Code

`create or modify page` turning a Data grid 2 attribute column into a
customContent column wrote the column's tooltip null, the property the
widget hides for custom content, and canon.CarryUnexpressed put the
stored empty ClientTemplate back: null over an empty template is how it
recognises Studio Pro's unset screen-reader label. mx check reported
CE0463 on the grid. Inside a CustomWidgets$WidgetValue the writer's null
is deliberate, so that carry now skips widget values.

Fixes #2732

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
@ako
ako merged commit 6d2bbde into main Dec 2, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants