Aggregation settings are not removed from fields when turned off

Created on 28 June 2013, about 11 years ago
Updated 18 September 2021, almost 3 years ago

When creating a view, if 'use aggregation' has been turned on and aggregation settings set for a field, the field remains aggregated even after 'use aggregation' has been turned off.

Steps to reproduce

  1. Create a new view displaying fields
  2. Turn on aggregation for the view display under advanced settings
  3. Include a field, e.g. NID or Title and set your aggregation settings for the field, e.g. count.
  4. Verify that your view preview is showing an aggregate result
  5. Turn off aggregation under advanced settings
  6. Verify that the preview is still showing an aggregate result.
  1. And for bonus points...
  2. Remove the field, clear caches etc.
  3. Add in the same field again.
  4. Verify that the preview is still showing an aggregate result.

Expected Behaviour

Expected behaviour is that when 'use aggregation' is turned off, the field goes back to behaving default, non-aggregate behaviour.

What Happened Instead

Instead, the field retained its aggregate settings.

🐛 Bug report
Status

Needs work

Version

9.5

Component
Views 

Last updated 1 minute ago

Created by

🇮🇪Ireland anthonylindsay

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024