Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since points can be added to any entity via entity_reference, therefore multiple points fields can exist on the same entity. This makes routing for the points movement tab and the filtering on the backend views more dynamic.
Comment | File | Size | Author |
---|---|---|---|
#8 | fix-display-multiple-points-in-the-same-entity-#2886043-0.patch | 3.27 KB | alan_blake |
Comments
Comment #2
skyredwangWith latest version, the points movement views on an entity has path
/entity_type/entity_id/points
. The last partpoints
is hard coded. It should be replaced by the field name without the "field" prefix. This means 3 places need to be updated:1. PointsMovementRoutes::routes() needs to generate new routes like
/entity_type/entity_id/field_name
2. EntityPointsMovementController::page() needs to accept new route
3. views.view.point_movement.yml needs to be able to accept [field_name] as a filter to filter out points movements which don't belong to the certain entity reference.
Comment #3
alan_blake CreditAttribution: alan_blake at Sparkpad commentedplease review.
Comment #4
alan_blake CreditAttribution: alan_blake at Sparkpad commentedComment #5
skyredwangneed a space
need a space
another space is needed
Comment #6
skyredwangThe patch is also not apply-able. How did you generate the patch?
Comment #7
alan_blake CreditAttribution: alan_blake at Sparkpad commentedok, edited.
Comment #8
alan_blake CreditAttribution: alan_blake at Sparkpad commentedComment #10
skyredwang