Posted by ordermind on June 7, 2012 at 11:27am
8 followers
| Project: | Panels |
| Version: | 7.x-3.x-dev |
| Component: | In-Place Editor (IPE) |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Issue Summary
After going into the IPE on a panel node and clicking "Cancel", the contextual links for the panes no longer work (seems javascript-related). Other contextual links on the page still work normally.
Comments
#1
When the "Cancel" or "Save" button is pressed, the panes are rebuilt using ajax. The problem with the contextual links is that they use a "destination" parameter to point back to the current page, but that in this case the "current page" is the ajax callback and not the page where the pane has been inserted.
#2
Confirmed on dev. An easy way to reproduce in a sandbox is to simply add the "Who's Online" block and even before saving the contextual "Configure Block" link has the ajax callback as the destination parameter.
#3
It actually sounds like there are two different bugs being reported here:
Both bugs happen for more than just contextual links, although contextual links are the easiest way to experience them.
The attached patch deals with #2. It's a pretty complicated bug, so I tried to explain in the inline code comments what I think is going on.
Perhaps we should split #1 to a different issue. (See also: some of the comments at #1520492: Saving a change in the IPE results in a blank page, fine after refresh, no error.)
#4
Actually, slight correction: it's not just newly-added panes, but also occurs for any pane, provided you just clicked the "Save" button.
So the main difference between the two bugs reported here is that one happens on save/add, and the other happens on cancel.
#5
Unfortunately, changes made recently make this patch not apply. Can i get a reroll?
#6
I just checked the latest dev, the problem seems to have been resolved elsewhere so I'm closing this.
#7
My mistake, a related issue was fixed but not this one. Contextual links still don't work after clicking "Cancel".
#8
Yup, this still occurs. Let me see if it's possible to do a quick reroll to get the patch working again.
#9
Alright, the reroll was pretty trivial, and testing against the latest 7.x-3.x-dev it seems to work for me.
#10
Just experienced the same problem, the patch works great and the added documentation is impeccable.