Bug #23633 Bug Fixed

Editing category custom fields error

Version: 4.3.1 Reporter: Rob Allen

Added a custom category TEXT field.

Went to edit it and got an error in the modal:

Notice Undefined variable: field ee/EllisLab/ExpressionEngine/Controller/Categories/Fields.php, line 121

Severity: E_NOTICE

Fatal error: Call to a member function getCompatibleFieldtypes() on null in /home/[redacted]/public_html/system/ee/EllisLab/ExpressionEngine/Controller/Categories/Fields.php on line 121

  • In system/ee/EllisLab/ExpressionEngine/Controller/Categories/Fields.php around line 120:

    $fieldtype_choices = array_intersect_key($fieldtype_choices, $field->getCompatibleFieldtypes());
    
    change to
    
    $fieldtype_choices = array_intersect_key($fieldtype_choices, $cat_field->getCompatibleFieldtypes());
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases