diff --git a/uw_ct_service.module b/uw_ct_service.module index f65299a04cf370a17fb15fee289cbc2dfc2d4398..50b32c35868537d812ec778665dc54e571e8f9ec 100644 --- a/uw_ct_service.module +++ b/uw_ct_service.module @@ -97,12 +97,12 @@ function _uw_ct_service_get_location_options(): array { function uw_ct_service_form_node_uw_ct_service_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void { // Unset the table header for comments in the regular days. - unset($form['field_uw_service_hours']['widget']['office_hours']['value']['#header']['comment']); + unset($form['field_uw_service_hours']['widget']['office_hours'][0]['value']['#header']['comment']); // Step through each of the regular days and remove the comments. foreach ($form['field_uw_service_hours']['widget']['office_hours'][0]['value'] as $index => $value) { if (is_int($index)) { - $form['field_uw_service_hours']['widget']['office_hours']['value'][$index]['#field_settings']['comment'] = 0; + $form['field_uw_service_hours']['widget']['office_hours'][0]['value'][$index]['#field_settings']['comment'] = 0; } }