Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
3 May 2011 at 20:54 UTC
Updated:
29 Jul 2014 at 19:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lyricnz commentedCan confirm issue. Have fix here, but writing tests. Will provide tonights.
Comment #2
lyricnz commentedHere's a patch to file.test that adds a test for labels being suppressed when file fields are empty. With the current codebase it gets: 36 passes, 1 fail, 0 exceptions, and 14 debug messages.
The second attachment the test, plus fix from #1, for a CNR patch.
Comment #3
mjpa commentedWorks fine for me on D7. Surprised to see such an old issue for such a trivial thing to fix...
Comment #4
dries commentedA before and after screenshot would be really helpful.
Comment #5
lyricnz commented- stock D8 install (disabled/reenabled JS during install to work around current install bug)
- added new field "stuff" as unlimited multi-value file field to "article"
- change format of field to "table of files"
- created an article with no files attached
- screenshots supplied: config, before, after
(D7 patch was applied to D8 from /core directory with some offsets)
Comment #6
lyricnz commentedRerolled patch for D8, no other change.
Comment #7
xjmScreenshots explain it quite well. This also has a test, so +1 on the RTBC.
Comment #8
dries commentedCommitted to 8.x. I also re-rolled the patch to 7.x and committed it to 7.x. Thanks for providing those screenshots; that was helpful.