Skip to content

[BUGFIX] Apply creationOptions if wizard is skipped - #777

Merged
achimfritz merged 1 commit into
masterfrom
bugfix/tca-creator-options
Oct 9, 2026
Merged

achimfritz merged 1 commit into
masterfrom
bugfix/tca-creator-options

Conversation

@achimfritz

Copy link
Copy Markdown
Contributor

If a container column allows exactly one CType, the new content element wizard is skipped and FormEngine is opened directly with the CType as default value. The creationOptions of this CType were ignored in that case, although the core wizard applies them.

The creationOptions are now evaluated when the new content URL is built:

  • defaultValues are added to defVals, LLL labels are translated. CType, colPos, sys_language_uid and tx_container_parent always take precedence.

  • saveAndClose creates the record directly via DataHandler (tce_db) instead of opening FormEngine, like the core wizard does.

Relates to: #774

If a container column allows exactly one CType, the new content
element wizard is skipped and FormEngine is opened directly with
the CType as default value. The creationOptions of this CType were
ignored in that case, although the core wizard applies them.

The creationOptions are now evaluated when the new content URL is
built:

 - defaultValues are added to defVals, LLL labels are translated.
   CType, colPos, sys_language_uid and tx_container_parent always
   take precedence.

 - saveAndClose creates the record directly via DataHandler
   (tce_db) instead of opening FormEngine, like the core wizard
   does.

Relates to: #774
@thomasrawiel

Copy link
Copy Markdown
Contributor

Hi @thomasrawiel , thanks for PR, and for Bugreport. We want to keep the Feature to skip new content element wizard, so i have created anothter PR, s. #777, is this working for you?

@achimfritz
Though I'd prefer not skipping the new content element wizard (but that decision is of course up to you), I have tested #777 in both v13 and v14.
The default values and saveAndClose creation options are correctly applied. It works!

Thank you for taking the time to look into this.

@achimfritz
achimfritz merged commit 2b9a6ed into master Oct 9, 2026
9 of 17 checks passed
@achimfritz
achimfritz deleted the bugfix/tca-creator-options branch October 9, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants