Warnings for undefined array keys

Created on 24 June 2024, 6 months ago
Updated 10 July 2024, 5 months ago

Problem/Motivation

When adding a node that has entity reference fields which uses the ai_interpolator, these warnings appear:

Warning: Undefined array key "clean_up" in Drupal\ai_interpolator\PluginBaseClasses\Taxonomy->generate()
(line 113 of modules/contrib/ai_interpolator/src/PluginBaseClasses/Taxonomy.php).

Warning: Undefined array key "search_similar_tags" in Drupal\ai_interpolator\PluginBaseClasses\Taxonomy->generate()
(line 117 of modules/contrib/ai_interpolator/src/PluginBaseClasses/Taxonomy.php).

Proposed resolution

Add checking if these array keys are defined..

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇴Jordan odai jbr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024