diff --git a/core/modules/filter/src/FilterBag.php b/core/modules/filter/src/FilterBag.php index 1837a0c..f509847 100644 --- a/core/modules/filter/src/FilterBag.php +++ b/core/modules/filter/src/FilterBag.php @@ -112,7 +112,12 @@ public function sortHelper($aID, $bID) { */ public function getConfiguration() { $configuration = parent::getConfiguration(); - // Remove configuration if it matches the defaults. + // Remove configuration if it matches the defaults. In self::getAll(), we + // load all available filters, in addition to the enabled filters stored in + // configuration. In order to prevent those from bleeding through to the + // stored configuration, remove all filters that match the default values. + // Because filters are disabled by default, this will never remove the + // configuration of an enabled filter. foreach ($configuration as $instance_id => $instance_config) { $default_config = array(); $default_config['id'] = $instance_id;