Commit 0496e9cd authored by gbyte.co's avatar gbyte.co

Issue #2903558 by Nino1234: Similar entity_type_id can lead to a remove of the other one

parent bacdaa8b
......@@ -264,7 +264,7 @@ class Simplesitemap {
}
// Deleting inclusion settings.
$config_names = $this->configFactory->listAll("simple_sitemap.bundle_settings.$entity_type_id");
$config_names = $this->configFactory->listAll("simple_sitemap.bundle_settings.$entity_type_id.");
foreach($config_names as $config_name) {
$this->configFactory->getEditable($config_name)->delete();
}
......@@ -373,7 +373,7 @@ class Simplesitemap {
$bundle_settings = !empty($settings) ? $settings : FALSE;
}
else {
$config_names = $this->configFactory->listAll("simple_sitemap.bundle_settings");
$config_names = $this->configFactory->listAll("simple_sitemap.bundle_settings.");
$bundle_settings = [];
foreach($config_names as $config_name) {
$config_name_parts = explode('.', $config_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment