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.
When configuring a view with group by, the options form for a COUNT field uses the handler views_handler_field_numeric. However, when the view is exported some field_numeric specific settings are lost, because the COUNT field is exported with the handler views_handler_field_node in my case. Settings like format_plural, format_plural_singular, format_plural_plural etc. are not exported and lost. The view works fine, but the export is incomplete.
I have attached the export of my View.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1174224-views-export-aggregate-handler.patch | 1.25 KB | klausi |
views-incomplete-export.txt | 11.08 KB | klausi |
Comments
Comment #1
klausiHere is a patch that fixes the issue by overriding the handler with the proper aggregation handler. Code snippet was stolen from line 787 in views_plugin_display.inc, so we have some duplicated code now. Maybe we want to separate this out to a shared method. However, this patch solves the issue for people like me that need an instant solution.
Comment #2
dawehnerThanks. This patch fixes the issue for me.
Commited to 7.x-3.x