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
- Create a new view displaying fields
- Turn on aggregation for the view display under advanced settings
- Include a field, e.g. NID or Title and set your aggregation settings for the field, e.g. count.
- Verify that your view preview is showing an aggregate result
- Turn off aggregation under advanced settings
- Verify that the preview is still showing an aggregate result.
- And for bonus points...
- Remove the field, clear caches etc.
- Add in the same field again.
- 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.