Problem/Motivation
Needed a numeric machine name to pass codes for ACCPAC system but found out quickly the broke things in the menu.
The menu title callback for shipping is:
$items['admin/commerce/config/shipping/services/' . $service_name_arg] = array(
'title callback' => 'commerce_shipping_service_get_title',
'title arguments' => array($service_name),
Which will return a list, if there is no service name, but the tricky part is title arguments that are numeric are looking in the URL arguments.
Proposed resolution
Cast the title arguments to a string.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | numeric_machine_names-2463921-1.patch | 708 bytes | joelpittet |
Comments
Comment #1
joelpittetHere's a patch and bumping priority as this can do some nasty error messages.
Comment #2
joelpittetComment #3
joelpittetComment #4
googletorp commentedReviewed and committed, thanks.
Comment #6
joelpittetAwesome thanks @googletorp.