omarzina / substruct

Automatically exported from code.google.com/p/substruct
0 stars 0 forks source link

Choosing to add additional images adds input to the Download Image area #176

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Log into admin interface
2. Create New Product
3. Click "Add file to upload" under "Images" heading

What is the expected output? 
A 2nd image upload input box should appear in the "Images" section.

What do you see instead?
A 2nd image upload input box appears in the "Downloads" section.

What version of the product are you using? On what operating system?
1.0a6

Original issue reported on code.google.com by mwl...@gmail.com on 23 Jun 2009 at 4:30

GoogleCodeExporter commented 8 years ago
This is because the _multiple_upload.rhtml has an inline javascript function 
that
will be present in the rendered html multiple times, all having the same 
function
name. I have fixed this by prefixed the 'name' attribute (which is passed to the
partial) to the name of the function. Each copy of the function will now have a
unique name. 

This is not the 'right thing to do', so I don't know if you want to take this 
as a
bug fix. But it will at least allow mwlang to work around, if he has not 
already.

Original comment by randiz...@gmail.com on 30 Jun 2009 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago
This has been fixed for awhile now - just haven't been paying much attention to 
these issues. Closing it out, thanks!

Original comment by subim...@gmail.com on 25 Aug 2010 at 8:32