Closed (fixed)
Project:
Context
Version:
6.x-2.0-beta7
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2009 at 10:20 UTC
Updated:
3 Apr 2010 at 10:10 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| context_ui.submit.patch | 1.26 KB | derhasi |
Comments
Comment #1
steven jones commentedActually 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.