Skip to content

Fields are deleted when saving Style Editor schema on a Content Type #35979

@dario-daza

Description

@dario-daza

Problem Statement

When a user creates a Content Type, adds fields to it, and then saves a Style Editor schema from the Style Editor tab, all previously added fields are unexpectedly removed from the Content Type.

Multiple toast notifications appear during the save: "CleanUpFieldReferencesJob finished for field: [fieldName]" — one per deleted field. After refreshing the page, the Content Type has no fields left.

This makes it impossible to define a Style Editor schema on a Content Type that already has fields without losing all of them.

Steps to Reproduce

  1. Create a new Content Type
  2. Add one or more fields to it (e.g. Text, Custom Field)
  3. Navigate to the Style Editor tab of the same Content Type
  4. Define a Style Editor schema and click Save
  5. Refresh the page

Acceptance Criteria

  • Saving a Style Editor schema from the Style Editor tab does not delete any fields previously added to the Content Type
  • No "CleanUpFieldReferencesJob" toasts appear when saving only the Style Editor schema
  • After saving and refreshing, all fields added before the Style Editor save remain intact

dotCMS Version

Latest from main branch

Severity

High - Major functionality broken

Links

NA

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions