Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
* create a checklist with a check named 'foo-bar'
* check the check
Result: the check is not saved.
Expected: Either the check is saved or the system yells about a bad name (i'd prefer to be able to use '-'.)
Looks like this is a result of the internal foo_bar => fooBar name mangling.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2880622-3.patch | 506 bytes | TravisCarden |
Comments
Comment #2
TravisCarden CreditAttribution: TravisCarden as a volunteer commentedThanks for the report, @axel.rutz. As essentially a superset of the Form API, Checklist API was never intended to support hyphens in item keys. The problem you're experiencing may well, as you say, be in the string to lower camel case conversion that takes place. I haven't cracked the Drupal 7 code in a long time. Would you care to give the attached (hastily written) patch a try and see if it solves your problem for you?
Comment #4
TravisCarden CreditAttribution: TravisCarden as a volunteer commentedOops; silly me. Let's try again.
Comment #5
TravisCarden CreditAttribution: TravisCarden as a volunteer commentedComment #6
TravisCarden CreditAttribution: TravisCarden as a volunteer commented