From ebd0695d64675940b01146c0af38f89034e530ca Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Wed, 30 Oct 2024 15:25:01 -0300 Subject: [PATCH] updated field names so they match scholar2 --- disable_field_autocomplete.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disable_field_autocomplete.module b/disable_field_autocomplete.module index bc673eb..c588772 100644 --- a/disable_field_autocomplete.module +++ b/disable_field_autocomplete.module @@ -46,8 +46,8 @@ function disable_field_autocomplete_form_node_islandora_object_form_alter(&$form */ function disable_field_autocomplete_node_edit_validate(&$form, \Drupal\Core\Form\FormStateInterface $form_state) { // TODO: discover fields configured to use the disable_field_autocomplete widget instead of hardcoding. - disable_field_autocomplete_validate_fields('field_linked_agent', $form, $form_state); - disable_field_autocomplete_validate_fields('field_host_contributor', $form, $form_state); + disable_field_autocomplete_validate_fields('field_contributors', $form, $form_state); + disable_field_autocomplete_validate_fields('field_host_contributors', $form, $form_state); disable_field_autocomplete_validate_fields('field_series_contributors', $form, $form_state); }