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
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.

AttachmentSize
whizzywyg.module-imagebrowser.patch4.14 KB

#1

drupal-id.com - November 8, 2009 - 15:34
Status:active» patch (to be ported)

Thanks for patching, I will review and put on next release soon.

#2

drupal-id.com - November 11, 2009 - 04:05

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

Peter Bex - November 22, 2009 - 16:03

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

drupal-id.com - November 29, 2009 - 13:23

Thanks for sample, now I can re-produce and confirm this is a bug in this module. Patching will be available soon.

 
 

Drupal is a registered trademark of Dries Buytaert.