From d1d85e60e3287ec589b86eb3f7d799a3e44e105f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 1 Oct 2009 13:14:04 +0000 Subject: - Patch #592286 by ksenzee | bjaspan: adding a field fails. --- modules/field_ui/field_ui.admin.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc index ba2734ac4..419d772d0 100644 --- a/modules/field_ui/field_ui.admin.inc +++ b/modules/field_ui/field_ui.admin.inc @@ -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'] = '
' . t('There is data for this field in the database. The field settings can no longer be changed.' . '
') . $form['field']['#description']; } -- cgit v1.2.3