Commit fc81470f authored by webchick's avatar webchick
Browse files

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

parent 374fbf71
......@@ -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;
}
......
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