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.

#2 save_context-1955894-2.patch907 bytesplopesc
PASSED: [[SimpleTest]]: [MySQL] 21 pass(es).
[ View ]


Component:User interface» Context

new907 bytes
PASSED: [[SimpleTest]]: [MySQL] 21 pass(es).
[ View ]


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.


Changing status

Status:Active» Needs review

Status again

Status:Needs review» Fixed

Good catch, thank you. Committed!

Status:Fixed» Closed (fixed)

Now that v7.x-1.0-beta7 is out, I'm closing this in the interest of keeping the issue queue clean.