Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Jan 2014 at 12:09 UTC
Updated:
29 Jul 2014 at 23:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yched commentedSince we can't do a usort on a FieldItemList, then the FieldItemList needs to be able to do it for us...
Comment #2
yched commentedActually - there might be a case for sorting abilities on (Field)ItemList, but in our specific case here, it makes more sense to sort the raw form values before they get assigned to the field. Cleaner code in WidgetBase::extractFormValues().
Comment #5
yched commentedMultiple values widgets needed more care.
We should try to revive #1846162: Cleanup Widgets API : add a separate base class for 'multiple' widgets, but meanwhile this should do it.
Comment #6
yched commented"danse" is UK, right ? or just plain wrong ?
Comment #7
swentel commented5: widgetBase_sortItems-2170979-5.patch queued for re-testing.
Comment #8
swentel commentedNice cleanup. Asked for a retest just to be sure, RTBC when it comes back green.
Comment #9
yched commented5: widgetBase_sortItems-2170979-5.patch queued for re-testing.
Comment #10
yched commentedReroll after #2141539: Rename FieldItemListInterface::filterEmptyValues() to filterEmptyItems()
Comment #11
alexpottNice tidy up - Committed a59a468 and pushed to 8.x. Thanks!
Comment #12
yched commentedSorry, quick minor followup - don't know what got into me, that added "return" is totally useless.
Trivial, setting straight back to RTBC. Spank me :-)
Comment #13
alexpottCommitted 85a75d4 and pushed to 8.x. Thanks!