- Merge request !28Issue #3180178: Enable Views integration for poll votes β (Merged) created by BramDriesen
- Status changed to Needs review
9 months ago 3:42pm 16 February 2024 - Status changed to Needs work
9 months ago 3:48pm 16 February 2024 - Status changed to Needs review
9 months ago 4:29pm 16 February 2024 - π§πͺBelgium BramDriesen Belgium π§πͺ
+++ b/src/PollViewData.php @@ -33,6 +33,15 @@ class PollViewData extends EntityViewsData { + $data['poll_field_data']['question'] = [ + 'title' => 'Question', + 'help' => 'The question being asked by the poll.', + 'real field' => 'question', + 'field' => [ + 'id' => 'standard', + ], + ];
This override was breaking the default behaviour where the title aka the question is being rendered as a link to the entity.
I don't think this is needed as the question itself is already present in the viewsData.
- Issue was unassigned.
- Status changed to RTBC
8 months ago 10:58am 9 March 2024 - ivnish Kazakhstan
I tested the view with poll votes as relationship. It works as expected
-
BramDriesen β
committed 4589a07a on 2.0.x
Issue #3180178 by BramDriesen, andileco, MegaChriz: Enable Views...
-
BramDriesen β
committed 4589a07a on 2.0.x
- Status changed to Fixed
8 months ago 1:50pm 9 March 2024 - π§πͺBelgium BramDriesen Belgium π§πͺ
Committed and pushed to 2.0.x. Thanks all!
- πΊπΈUnited States robphillips
BramDriesen β credited robphillips β .
- π§πͺBelgium BramDriesen Belgium π§πͺ
Added credit from β¨ Missing views data for poll votes and choices Postponed
Automatically closed - issue fixed for 2 weeks with no activity.