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.
The case is the following:
"View One" and "View Two" are using the Megarow table format. "View One" has views megarow links in which there is a link "view nodes" to "View Two" with a contextual filter. "View Two" also has megarow links with a link "view node" to /node/%. When you click on "view node", the rendered node appears correctly, but when you close the megarow it also closes the parent megarow in which "View Two" is rendered.
The patch attached fixes this by closing only the first parent of the close button and removes the first parent <tr>
of the .views-megarow-content
element.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_megarow-nested-megarow-close-first_2741843_2.patch | 924 bytes | vtcore |
Comments
Comment #2
vtcore CreditAttribution: vtcore commentedAttached a patch.
Comment #3
bocaj CreditAttribution: bocaj commentedI had the same issue. This patch worked great!
Comment #4
vtcore CreditAttribution: vtcore commentedCan we see this committed any time soon?
Comment #6
ArtusamakIt's committed, thank you for the patch and the tests.