When trying to add a new context, the context is not saved by submission in several cases. This happens, when there are multiple submit buttons present on the current page, so the #id of the button is not #edit-submit but for example #edit-submit-7. So #id is not the right indicator.
I changed the indicator to FAPI id, that is contained in #parents as first element.

Patch attached.

CommentFileSizeAuthor
context_ui.submit.patch1.26 KBderhasi

Comments

steven jones’s picture

Status: Needs review » Fixed

Actually we can be smarter still, and attach a new submit handler directly to the delete button, then we don't need any clicked button detection logic at all.

Fixed in 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.