Image browser doesn't insert images after clicking another button
Peter Bex - November 6, 2009 - 21:39
| Project: | Whizzywig |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
| Issue tags: | image browser, non-functioning buttons |
Jump to:
Description
The image browser doesn't retain the "rtn" query parameter when generating new pages after form submission. This causes the 'insert' button to break because the form_id_name in fillImageForm is now empty.
The attached patch carries the "rtn" query parameter forward in all generated forms.
| Attachment | Size |
|---|---|
| whizzywyg.module-imagebrowser.patch | 4.14 KB |

#1
Thanks for patching, I will review and put on next release soon.
#2
I try to re-produce this bug but fail, here are the details:
1. Create new page, insert Image and Save ... success
2. Create another new page, insert Image and Save ... success
Can you explain how to re-produce this bug?
#3
It only occurs when you click on a button which refreshes the page and try to insert an image afterwards.
Examples:
Open image browser, click "delete" for an image, click "insert" for another image - failure
Open image browser, change directory, insert image - failure
#4
Thanks for sample, now I can re-produce and confirm this is a bug in this module. Patching will be available soon.