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.
plugins/views_plugin_style_jump_menu.inc, line 98
OLD:
foreach ($sets as $title => $records) {
foreach ($records as $row_index => $row) {
NEW:
foreach ($sets as $title => $records) {
$rows = isset($records['rows']) ? $records['rows'] : array();
foreach ($rows as $row_index => $row) {
Comment | File | Size | Author |
---|---|---|---|
#4 | 1315320-jump_menu_path.patch | 786 bytes | dankobiaka |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedBut that's now the structure $sets should be in. This makes absolutely no sense.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedBy the way when filing a bug report with a fix, you need to show us what the bug this is fixing actually is, show us how to reproduce it, and show us why your fix is correct.
Also, you need to supply patch files.
Comment #3
dankobiaka CreditAttribution: dankobiaka commentedWithin this function $sets contains:
Therefore, the loop is coded incorrectly as it is not configured to loop through the [rows] array, but rather assumes $sets contains an array in this format:
This is obviously incorrect. My solution resolves this issue and now the jump menu works.
To reproduce the error, just create a jump menu WITHOUT GROUPING and you will notice it does not work.
Comment #4
dankobiaka CreditAttribution: dankobiaka commentedComment #5
merlinofchaos CreditAttribution: merlinofchaos commentedI don't know how you're seeing that, but that is not the format that render_grouping() returns.
Nowhere does it make 'groups' or 'rows'.
Comment #6
dankobiaka CreditAttribution: dankobiaka commentedHmm, mine is different:
Comment #7
azinck CreditAttribution: azinck commentedLooks like this commit changed it in the dev branch: http://drupalcode.org/project/views.git/commitdiff/a0e16956d080785c8151b...
The new structure is going to break a few modules, methinks.
Comment #8
cpelham CreditAttribution: cpelham commentedI just created a new view with a page that displays node titles correctly in unformatted list but a block configured to be a jump menu displays nothing (whether there is grouping or not). Is this the same issue? (Also, in case it is relevant, Quicktabs display plugin no longer displays any data.)
Here is the view with the broken jump menu block:
Comment #9
cpelham CreditAttribution: cpelham commentedDereine just reverted views_plugin_style_inc which resolves this problem. If you know how, go into the repository and grab the current dev of that file. Otherwise, wait for a new dev of Views to come out (sometime tomorrow I expect). This problem was the result of an api that can changed in an attempt to fix another bug. Another approach to fixing that bug will probably be worked on now. It's possible this api could get broken again or maybe they'll find a work around.
Comment #10
cpelham CreditAttribution: cpelham commented