Commit cbe0991d authored by webchick's avatar webchick
Browse files

#617632 follow-up by zserno and yched: Fix redirection path for content types with underscores.

parent 110f89c5
......@@ -326,7 +326,7 @@ function field_ui_form_node_type_form_alter(&$form, $form_state) {
*/
function field_ui_form_node_type_form_submit($form, &$form_state) {
if ($form_state['clicked_button']['#parents'][0] === 'save_continue') {
$form_state['redirect'] = 'admin/structure/types/manage/'. $form_state['values']['type'] .'/fields';
$form_state['redirect'] = _field_ui_bundle_admin_path('node', $form_state['values']['type']) .'/fields';
}
}
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