Closed (fixed)
Project:
Vote Up/Down
Version:
8.x-1.0-alpha4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2018 at 19:19 UTC
Updated:
16 Oct 2021 at 22:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pene commentedSame error here. I've just installed a fresh new D8, added a Vote content type with only the title and a vote field, and created a view with those two fields showing them from this content type.
Comment #3
dangreenman commentedI discovered the element array returned by the viewElements() function in the fieldformatter is malformed (missing an index.)
The patch I have attached appears to fix the issue. Please review.
Comment #4
pene commentedRTBC - It works with the above patch in #3 for 8.x-1.x-dev
It also works with 8.x-1.0-alpha3 and 8.x-1.0-alpha4, however because the code changed a bit (or it looks like half of the patch's code is in the 8.x-1.0-alpha3 release), the updated patch is attached for those versions. Use it or not :)
Comment #5
pene commentedChanging status and version. The patch in #3 works with 8.x-1.0-dev, the #4 with 8.x-1.0-alpha3 & 8.x-1.0-alpha4
Comment #9
marvil07 commentedThanks for the changes here!
I have changed a bit the implementation, to follow the pattern mostly used on core field formatters.
It is also important to mention that this change partly reverts 9b2268ae92ca28a88f812caf6dd941f00135b015 related to #2922521: Panelizer entity_field won't display vud votes, but after looking again at that change, I see that it may be only fixing the case panelizer, so I am OK rolling it back, and support for panelizer may need a new change, but hopefully it is a bug to fix there instead.