Skip to content

Bundle-less Actions Config Not Merged #1114

@jimohalloran

Description

@jimohalloran

Summary
If I create more than one YAML file in config/actions/ all files are loaded, but only the last one is used.

Steps to reproduce
Create a file called config/actions/file1.yml and define an action for a route. Note that the action appears in the UI for that route. Now create a second file called config/actions/file2.yml and define another action for the same route.

Actual Result
The action defined in file1.yml has disappeared, and only the action define in file2.yml is visible.

Expected Result
Expected that both actions would be visible.

Details about your environment

  • OroPlatform version: 5.1.x (6.x and master have this issue also)
  • PHP version: 8.2.12
  • Database (PostgreSQL) version: 15.4

Additional information
If I have more than one YAML file in the config/actions/ folder all are loaded, but when \Oro\Bundle\ActionBundle\Configuration\ConfigurationProvider assembles them together into a single array, the content of each YAML file overwrites the previous file. The issue occurs in the getRawConfigs function at line 82, as all of the $resources have the same bundleClass (AppKernel).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions