diff --git a/core/modules/node/content_types.inc b/core/modules/node/content_types.inc index 29632d2..de655d3 100644 --- a/core/modules/node/content_types.inc +++ b/core/modules/node/content_types.inc @@ -306,8 +306,8 @@ function _node_characters($length) { */ function node_type_form_validate($form, &$form_state) { $type = new stdClass(); - $type->type = trim($form_state['values']['type']); - $type->name = $form_state['values']['name']; + $type->type = $form_state['values']['type']; + $type->name = trim($form_state['values']['name']); // Work out what the type was before the user submitted this form $old_type = $form_state['values']['old_type'];