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.
In OgMenuTrait::getOgMenuTree()
the default menu tree parameters are used to retrieve the menu tree. However, this might cause the $parameters->expandedParents
to be set, causing an incomplete tree to be loaded, with only the selected parents being expanded.
We should clear this parameter so that the full tree is returned.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2902590-5.patch | 868 bytes | pfrenssen |
Comments
Comment #2
pfrenssenComment #3
sardara CreditAttribution: sardara at Randstad Digital for European Commission and European Union Institutions, Agencies and Bodies commentedGood one! This was a tricky one.
Since we are emptying the parents, we can remove the line 126 that sorts them.
Comment #4
sardara CreditAttribution: sardara at Randstad Digital for European Commission and European Union Institutions, Agencies and Bodies commentedComment #5
pfrenssenGood catch! Here's a better version.
Comment #6
sardara CreditAttribution: sardara at Randstad Digital for European Commission and European Union Institutions, Agencies and Bodies commentedGood, straight to RTBC.
Comment #7
pfrenssenAwesome, thanks for the review!