Closed (fixed)
Project:
Webform
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 18:57 UTC
Updated:
13 Mar 2012 at 03:40 UTC
If component already have file uploaded, it do not display it. It is very easy fix. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| 0001-Fix-missing-download-file-option-for-File-component.patch | 1.25 KB | pavel.karoukin |
Comments
Comment #1
quicksketchThanks, this looks like a legitimate bug and a good fix to me, though I'm not quite sure how to reproduce the problem. I can see where it arises though, if the $element array contains a property as the first option (such as #title) instead of the upload field itself, nothing will be displayed.
I'd like to just confirm the problem and check the fix, but this looks good to me.
Comment #2
quicksketchI couldn't reproduce this problem but I see what it's fixing. After testing I couldn't see any new problems so I've committed this patch to the Drupal 6 branch. Drupal 7 has a complete different file component now, so there weren't any changes needed there. Thanks for the patch!
Comment #3
pavel.karoukin commentedIf I remember correctly, it happens when you go between pages of multi-page webform -- when you go back and forth. You are correct regarding D7 branch - there no patch needed since it uses core File component.