Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle-less Actions Config Not Merged #1114

Open
jimohalloran opened this issue May 14, 2024 · 0 comments
Open

Bundle-less Actions Config Not Merged #1114

jimohalloran opened this issue May 14, 2024 · 0 comments

Comments

@jimohalloran
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant