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.
Steps to reproduce the issue:
- Enable locale module
- Go to admin/content/node
- Apply filtering for a language of your choice.
The content is filtered as expected, but the language option is still available for repeated selection. The type option is removed instead.
This is because in node_filter_form() the type filter is always removed if either type or language filtering is already active.
}
if (in_array($type, array('type', 'language'))) {
// Remove the option if it is already being filtered on.
unset($filters['type']);
}
Easily fixed :
}
if (in_array($type, array('type', 'language'))) {
// Remove the option if it is already being filtered on.
unset($filters[$type]);
}
Patch against HEAD attached.
Comment | File | Size | Author |
---|---|---|---|
node_filter.diff | 411 bytes | riccardoR | |
Comments
Comment #1
Gábor HojtsyYou are right, thanks for the report and patch, committed!
Comment #2
(not verified) CreditAttribution: commented