Skip to content

Better handling of deprecated TV types and removed TV types #13077

Open
@Jako

Description

@Jako

Summary

It has to be solved that deprecated TV types are not selectable anymore and not existing old TV types (i.e. removed custom TV types) could create a fatal error. Some fallback to a default TV type should be implemented.

Step to reproduce

At the moment the Textarea (mini) TV type is still visible in newer MODX installations, if it is assigned to a TV. Also custom TV types assigned to a TV are still using that TV custom type when the custom TV type extra is uninstalled. That causes a fatal error in the backend during editing a resource with that TV assigned (for deprecated TV types since MODX 2.5.0).

Observed behavior

Fatal error during editing a resource using that TV.

Expected behavior

No fatal error and a fallback to i.e. textarea TV. I would prefer a textarea TV, since a custom TV value could contain multiple lines, quotes etc.

Environment

All MODX versions, see #13066

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-corebugThe issue in the code or project, which should be addressed.urgentThe issue requires attention and has higher priority over others.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions