Support identifiers other than nid

Created on 12 July 2018, over 6 years ago
Updated 28 May 2024, 7 months ago

When DraggableViews is used with another Content entity (non-node) errors are shown when the hierarchy functionality is used. The Drupal\draggableviews\DraggableViews class seems to assume an identifier is always called 'nid', while it can have arbitrary names.

I think the solution should be to inspect the view's base entity type for the identifier field, and use that field in the depth calculation.

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands marcus_w

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024