Closed (fixed)
Project:
SWFUpload
Version:
6.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Apr 2010 at 16:34 UTC
Updated:
23 Jun 2010 at 01:00 UTC
Jump to comment: Most recent file
When selecting all files to delete (and list is empty) while editing node with swfupload widget these files are not deleting after submit.
[OR]
If there is X files and I select X-Y (Y
Best reguards
MacieQ
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | swfupload.widget_value.patch | 1.06 KB | jcarnett |
| #3 | swfupload.widget_value.patch | 1.69 KB | jcarnett |
| overview.png | 111.49 KB | macieq |
Comments
Comment #1
timlie commentedI can confirm this bug. I can reproduce the bug also in beta3.
Beside this bug thanks for this really handy module!!!
Comment #2
macieq commentedSure, the module is handy and usefull. Please send some feedback info about the remove bug time process.
Thanx!
Mat
Comment #3
jcarnett commentedIt looks like the problem is with swfupload_wiget_value() not properly detecting the empty state for the list of files, causing it to revert back to the default value and changing nothing. The attached patch fixes swfupload_widget_value() and also updates the toJson functions (why are there two?) to return "{}" for an empty object instead of "null". Bad things happen when swfupload_widget_value() gets a null, plus empty objects and null are not the same thing.
Comment #4
eugenmayer commentedCant apply the patch to beta3
patching file swfupload.module
Hunk #1 succeeded at 168 (offset -2 lines).
patching file js/swfupload_widget.js
can't find file to patch at input line 38
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
did you apply any patches before?
Comment #5
jcarnett commentedI think I may have had some leftover junk from trying a different version or maybe dev. The file I thought was a duplicate wasn't supposed to be there at all. A corrected patch is attached.
Comment #6
skilip commentedComment #7
j0e commentedtried #5 on beta, when I saved an image i'd uploaded using swfupload, got warning: preg_match() expects parameter 2 to be string
Comment #8
skilip commentedjOe, that can't be due to this patch. Can you please create a different issue for that?
Comment #9
j0e commentedPhilip, i posted the issue at: http://drupal.org/node/822244
Joseph