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.
I believe this #1721522: Array key not recognized when apostrophe is present goes a little deeper. We were having the following problem:
1. Other is chosen and value with ampersand is entered. Node is saved.
2. Node is edited and the entered value with the ampersand is not selected because while the displayed value &, the option value is &
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#2 | select_or_other-values_with_ampersand-2568353-1.patch | 673 bytes | micnap |
Comments
Comment #2
micnap CreditAttribution: micnap at Mediacurrent commentedComment #3
darksnow CreditAttribution: darksnow commentedThis patch works fine for me and I can't see any side effects from such a simple patch.
Great work micnap
Comment #4
legolasboI guess the patch is simple enough, but I would also like to have test coverage for this.
Comment #5
micnap CreditAttribution: micnap at Mediacurrent commentedComment #6
legolasboComment #8
legolasboAdded tests and committed, thanks for the patch!