automator_search_index breaking frontend valiation

Created on 19 May 2025, 18 days ago

Problem/Motivation

If AI Automators is enbled. When updating a content type, for example setting a field from required to not required, and the 'Enable AI Automator' checkbox is unchecked: then the form still tries to validate the field 'automator_search_index'

This field does not have a default value therefore triggers the front end validation and the javascript error:

'An invalid form control with name='automator_search_index' is not focusable.
​…​

​'

Steps to reproduce

  1. Enabled AI automators
  2. Edit an existing content type
  3. Manage fields
  4. Leave 'Enable AI Automator' unchecked
  5. Change a setting, eg. Required
  6. Save Changes

Proposed resolution

Set the field to '#required' => FALSE

🐛 Bug report
Status

Needs work

Version

1.0

Component

AI Automators

Created by

🇬🇧United Kingdom jonnyToomey

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

Comments & Activities

Production build 0.71.5 2024