Following example: if a entity with id 'entity_projectext' and 'entity_project' exist, but only 'entity_projectext' should be in indexed.

Problem: Submitting the "SimplesitemapEntitiesForm", it loops all available entity types and enable (create config file, ...) or disable (delete config file, ...). For accessing the correct config files, you get them with `$this->configFactory->listAll`. This method returns all config files with the given parameter, but not exactly one, all which has the given parameter in their name.
"simple_sitemap.bundle_settings.entity_projectext.entity_projectext" -> correct
"simple_sitemap.bundle_settings.entity_project.entity_project" -> this will find 'entity_project' and 'entity_projectext'

Best regards,
Nino

Comments

Nino1234 created an issue. See original summary.

  • gbyte.co committed 0496e9c on 8.x-2.x
    Issue #2903558 by Nino1234: Similar entity_type_id can lead to a remove...

gbyte.co credited gbyte.co.

gbyte’s picture

Version: 8.x-2.9 » 8.x-2.x-dev
Status: Active » Fixed

Good catch, commited to dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.