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.
Currently, it is assumed that there is a 'title' field placed in the views row. But, in scenarios where this is used with a custom entity that may not have a title field, an unknown index warning is shown for each item on the admin page. Patch to follow to simply add an isset check. This will remove the warning, but prevents the addition of the indentation item in `draggableviews_preprocess_views_view_table`.
Comment | File | Size | Author |
---|---|---|---|
#7 | draggableviews-do_not_assume_title-2876749-7.patch | 1.55 KB | iStryker |
Comments
Comment #2
anthonysimone CreditAttribution: anthonysimone at Elevated Third commentedComment #3
anthonysimone CreditAttribution: anthonysimone at Elevated Third commentedUpdated patch attached, error with the above
Comment #4
Denes.Szabo CreditAttribution: Denes.Szabo as a volunteer commentedThe patch #3 solved the title notice problem. Thx!
Comment #5
iStryker CreditAttribution: iStryker commentedThis is from https://www.drupal.org/node/2826523#comment-12010818
Comment #6
iStryker CreditAttribution: iStryker commentedComment #7
iStryker CreditAttribution: iStryker commentedAttached is a patch that finds the first column that is not the draggableviews field. Once hierarchy is working then it will add the indentation.
Comment #8
iStryker CreditAttribution: iStryker commentedComment #10
iStryker CreditAttribution: iStryker commentedCommitted