Skip to content
Snippets Groups Projects
Commit f6c1d1f1 authored by Angie Byron's avatar Angie Byron
Browse files

#938672 by Jeff Burnz: Stop thousands of red Xs from appearing on field UI error.

parent e45e8b2a
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1438,7 +1438,7 @@ function field_ui_field_settings_form($form, &$form_state, $instance) {
// If so, prevent changes to the field settings.
$has_data = field_has_data($field);
if ($has_data) {
$form['field']['#description'] = '<div class=error>' . t('There is data for this field in the database. The field settings can no longer be changed.' . '</div>') . $form['field']['#description'];
$form['field']['#description'] = '<div class="messages error">' . t('There is data for this field in the database. The field settings can no longer be changed.' . '</div>') . $form['field']['#description'];
}
// Build the non-configurable field values.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment