Skip to content
Snippets Groups Projects
Commit b35a3fec authored by Thomas Seidl's avatar Thomas Seidl
Browse files

Issue #3425506 by drunken monkey, msnassar: Fixed unnecessary storing of...

Issue #3425506 by drunken monkey, msnassar: Fixed unnecessary storing of aggregated fields config values.
parent 578f75d8
No related branches found
No related tags found
1 merge request!119Optimize config export of aggregated fields
Pipeline #127592 passed
Search API 1.x, dev (xxxx-xx-xx): Search API 1.x, dev (xxxx-xx-xx):
--------------------------------- ---------------------------------
- #3425506 by drunken monkey, msnassar: Fixed unnecessary storing of aggregated
fields config values.
- #3431163 by drunken monkey: Fixed pipelines against Drupal 10.1 and 10.3. - #3431163 by drunken monkey: Fixed pipelines against Drupal 10.1 and 10.3.
- #3427391 by joachim, matias, drunken monkey: Fixed position of "Cancel" link - #3427391 by joachim, matias, drunken monkey: Fixed position of "Cancel" link
in field edit modal. in field edit modal.
......
...@@ -132,6 +132,12 @@ class AggregatedFieldProperty extends ConfigurablePropertyBase { ...@@ -132,6 +132,12 @@ class AggregatedFieldProperty extends ConfigurablePropertyBase {
'separator' => stripcslashes($form_state->getValue('separator')), 'separator' => stripcslashes($form_state->getValue('separator')),
'fields' => array_keys(array_filter($form_state->getValue('fields'))), 'fields' => array_keys(array_filter($form_state->getValue('fields'))),
]; ];
// Do not store the default value for "separator" if it is not even used.
// This avoids needlessly cluttering the config export.
if ($values['type'] !== 'concat'
&& $values['separator'] === $this->defaultConfiguration()['separator']) {
unset($values['separator']);
}
$field->setConfiguration($values); $field->setConfiguration($values);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment