Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Jun 2013 at 22:41 UTC
Updated:
29 Jul 2014 at 22:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yched commentedPatch.
#2020677: file_field_prepare_view() should not delete items currently needs to include some of those fixes, so in a way it is blocked by this.
Thus, adding the corresponding tags...
Comment #2
yched commentedComment #3
fagoTotally. I agree that's a reasonable improvement.
Patch looks good to me -> RTBC.
Comment #4
fagoComment #5
fagoComment #6
alexpottCommitted 2635b66 and pushed to 8.x. Thanks!
Comment #7
dave reidThis will need a change notice for anyone that has written file or image formatters.
Comment #8
dave reidComment #9
fagoComment #10
aspilicious commentedMaking this a task :)
Comment #11
scor commentedupdate tags (normalize to "Needs change notification")
Comment #12
yched commentedChange notice added at https://drupal.org/node/2047939
Comment #13
yched commentedresetting priority
Comment #14
yched commentedFollowup: formatters should use the helper FileFormatterBase::isDisplayed($item) method that was added in the late iterations of #1969728: Implement Field API "field types" as TypedData Plugins.
(the code example provided in the change notice linked above already does so)
Once #2015697: Convert field type to typed data plugin for file and image modules is done, this isDisplayed() method would be better off moved to the FileItem class, but for now it has to stay in FileFormatterBase.
Comment #16
yched commented#14: file_prepare_view-2020677-followup-14.patch queued for re-testing.
Comment #17
yched commentedBump :-)
Comment #18
yched commentedMoved #14 to a separate issue at #2090619: Move file visibility check to the FileItem class.
Putting this one back to fixed.
Comment #19.0
(not verified) commentedadded issue link