Repository navigation
fix!: a page title widget takes no Content - #2775
Merged
Merged
Conversation
`title t (Content: 'X')` passed check and exec, and the title still showed the page's Title: Forms$Title stores no text, and the writer has dropped it since #1373. The reads list, the builder, describe and the syntax help still advertised it. check now refuses Content on a title (MDL-WIDGET52 under mdl 1) with a hint to use a dynamictext heading; ALTER SET Content or Caption on a title says the same; describe stops printing it. Fixes #2768 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2768 (upstream mendixlabs#2026).
Problem
title t (Content: 'X')passedcheckandexec, andmx checkwas clean, yet the title rendered the page's Title, not X.alter page … set (Content: 'X') on t, orset (Caption: …), failed with "widget has no Content property" and nothing saying what to use. Translations for such titles matched nothing, because no Content was ever stored.Mendix's page title widget (
Forms$Title) stores no text: it shows the page's Title. The writer has dropped a caption since mendixlabs#1373. Everything on the reading side still offeredContent::describe, from a caption an older mxcli had stored;mxcli syntax page, which showedTITLE name (Content: 'Heading')three times;Fix (breaking, CHANGELOG
### Changed)check: the title reads noContent, so it is refused, as MDL-WIDGET52 undermdl 1and the existing MDL-V1-WIDGETPROP warning undermdl 0. The hint names the page'sTitle:anddynamictext name (Content: '…', RenderMode: H2)for heading text of its own.alter … set:Content,Captionand their params on a title are refused with the same pointer, includingalter page … { set (Title: '…'); }.describe: no longer prints aContent:that Studio Pro ignores.dynamictextheading. The doctype example, a test fixture and an existing test's title no longer carryContent.Evidence
mdl/executor/title_content_2768_test.go(check refusal with hint, plain-title control, describe) andmdl/backend/pagemutator/title_content_2768_test.go(alter message) failed before the fix.checkrefusestitle pageTitle1 (Content: 'Second heading')with the hint.title pageTitle1creates, andmx checkreports 0 errors.alter … set (Content: …)on it is refused with the pointer.make ci-localpassed. The targeted tests were re-run on the new main.Generated by Claude Code