summaryrefslogtreecommitdiff
path: root/modules/field
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 23:11:34 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-02-28 23:11:34 -0800
commit271dc4f3f3e625a353c5831ef9e4cbb55b811b9b (patch)
tree391780e2b05a5898d253963dda58cb65b8653940 /modules/field
parent312769b7d74c868beaa27309cd120e596b61e8a4 (diff)
downloadbrdo-271dc4f3f3e625a353c5831ef9e4cbb55b811b9b.tar.gz
brdo-271dc4f3f3e625a353c5831ef9e4cbb55b811b9b.tar.bz2
Issue #1294264 by budda, davidwhthomas: FieldUpdateForbiddenException: Cannot update a list field - better debug info.
Diffstat (limited to 'modules/field')
-rw-r--r--modules/field/modules/list/list.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/field/modules/list/list.module b/modules/field/modules/list/list.module
index 1d72be44a..8cb7b9ec3 100644
--- a/modules/field/modules/list/list.module
+++ b/modules/field/modules/list/list.module
@@ -345,7 +345,7 @@ function list_field_update_forbid($field, $prior_field, $has_data) {
// Forbid any update that removes allowed values with actual data.
$lost_keys = array_diff(array_keys($prior_field['settings']['allowed_values']), array_keys($field['settings']['allowed_values']));
if (_list_values_in_use($field, $lost_keys)) {
- throw new FieldUpdateForbiddenException(t('Cannot update a list field to not include keys with existing data.'));
+ throw new FieldUpdateForbiddenException(t('A list field (@field_name) with existing data cannot have its keys changed.', array('@field_name' => $field['field_name'])));
}
}
}