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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klausi’s picture

Status: Active » Needs review
FileSize
1.25 KB

Here 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.

dawehner’s picture

Status: Needs review » Fixed

Thanks. This patch fixes the issue for me.
Commited to 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.