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.
If a preset is deleted and is still selected as the chosen preset on a field, a Drupal error will be thrown.
The attached patch checks if the preset exists. If it doesn't, a message is displayed on the field formatter page rather than causing a Drupal error.
Comment | File | Size | Author |
---|---|---|---|
#3 | jw_player-error_deleted_preset-2725545-3.patch | 1.15 KB | ron_s |
#3 | interdiff-2725545-1-3.txt | 661 bytes | ron_s |
jw_player-error_deleted_preset-1.patch | 1.15 KB | ron_s | |
Comments
Comment #2
Berdirt() should not be used with an empty string.
Comment #3
ron_s CreditAttribution: ron_s commentedNew version for review.
Comment #5
BerdirThanks, committed.