Notice: Undefined index: field_type in fico_field_options() (line 416 of /var/www/html/web/modules/contrib/fico/fico.module)

Created on 20 September 2023, about 1 year ago
Updated 26 October 2023, about 1 year ago

Problem/Motivation

In the the .module file of the module exists a problem. The function fico_form_entity_view_display_edit_form_alter creates a variable named context without the 'field_type' value in the 'instance' option.
The method fico_field_options expects this value on line 406 $field_definition['field_type'] == '_ds'.

Steps to reproduce

1. Install and enable the Fico module.
2. Go to configuration form display mode of any content type.
3. Try to configure any conditions for the field.
4. Check Drupal logs.

Proposed resolution

As a temporary solution, we can add an additional check if this field is set, but the true way is to find the reasons why the field_type wasn't added to $context.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine _tarik_ Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024