Skip to content
Snippets Groups Projects
Commit fc81470f authored by Angie Byron's avatar Angie Byron
Browse files

#617532 by matt2000: Fixed field_ui() menu paths with underscores in content type names.

parent 374fbf71
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
......@@ -135,6 +135,7 @@ function field_ui_menu() {
* Menu loader; Load a field instance based on its name.
*/
function field_ui_menu_load($field_name, $obj_type, $bundle_name) {
$bundle_name = strtr($bundle_name, array('-' => '_'));
if ($instance = field_info_instance($obj_type, $field_name, $bundle_name)) {
return $instance;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment