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 have Meta Tags: Context enabled and I'm editing an existing tag (by path) via the module config (Configuration > Meta Tags)
When I edit the existing description and hit save, the meta description is updated.
However, if I delete the content in the field and hit save, the meta description does not update.
When I click to edit the tag again, the previous value is still in the meta description field.
Only when I delete the contents of the field and add a space will the meta description update as empty be hidden from the page source.
Comment | File | Size | Author |
---|---|---|---|
#2 | save_context-1955894-2.patch | 907 bytes | plopesc |
Comments
Comment #1
DamienMcKennaComment #2
plopescHello
I think the problem is related to line 157 in metatag_context.admin.inc file.
When using array_merge, old form values overrides deleted values, which does not appear in
$form_state['values']['metatags']
.Attaching patch that works for me.
Regards
Comment #3
plopescChanging status
Comment #4
DamienMcKennaComment #5
plopescStatus againComment #6
DamienMcKennaGood catch, thank you. Committed!
Comment #7
DamienMcKennaNow that v7.x-1.0-beta7 is out, I'm closing this in the interest of keeping the issue queue clean.