Skip to content

[4.0] Category custom fields marked as 'subform' act as if they are not #35543

@crystalenka

Description

@crystalenka

Steps to reproduce the issue

  1. Create a category custom field (text, editor, or media) marked as required and as subform only.
  2. If text or editor is your field type of choice, set the field to filter Safe HTML, alphanumeric, or telephone.
  3. Go to any content category.
  4. The field does not render (as expected).
  5. Try to save the category.

Expected result

The category saves as normal, since the field is subform only and not included in a subform assigned to this category.

Actual result

The category errors on save, asking for the required field.
Screen Shot 2021-09-13 at 11 13 47

System information (as much as possible)

Info Detail
Joomla! Version Joomla! 4.0.2 Stable [ Furaha ] 24-August-2021 19:54 GMT
PHP Version 7.4.12

Additional comments

Additionally, jcfields loads the field in the front end even if there is no content and it is not assigned to a subform.
Screen Shot 2021-09-13 at 11 12 04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions