Commit d1d85e60 authored by Dries's avatar Dries

- Patch #592286 by ksenzee | bjaspan: adding a field fails.

parent 1983aed4
......@@ -814,7 +814,7 @@ function field_ui_field_settings_form($form, &$form_state, $obj_type, $bundle, $
// See if data already exists for this field.
// If so, prevent changes to the field settings.
$has_data = field_attach_field_has_data($field);
$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'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment