Skip to content
Snippets Groups Projects
Commit fd68a992 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#77380 by hunmonk, fix the content type delete button.

parent d9d43eea
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -272,7 +272,7 @@ function node_type_form_submit($form_id, $form_values) {
node_type_reset($type);
}
elseif ($op == t('Delete content type')) {
return 'admin/content/types/'. $type->old_type .'/delete';
return 'admin/content/types/'. str_replace('_', '-', $type->old_type) .'/delete';
}
if (!empty($form_values['old_type'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment