Skip to content

"Field" class not used when $fieldtype->getFieldClass() returns an empty value #2251

@romaincazier

Description

@romaincazier

On line 411 if $fieldtype->getFieldClass() returns an empty value the Field class is not used as mentioned in the getFieldClass phpdoc.

Replacing the line with:

$class = wireClassName($fieldtype->getFieldClass() ?: "Field", true);

works.

This issue occured when trying to use $fields->newField() to create a FieldtypeFieldsetOpen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions