Skip to content

BUG: Category Repository get()'s argument store_id does not work #27044

Closed
@lbajsarowicz

Description

@lbajsarowicz

Description

The implementation of $storeId support was never finished.

Preconditions (*)

  1. Magento 2.4-develop

Steps to reproduce (*)

  1. Create 2 stores
  2. default with ID 1
  3. extra with ID 2
  4. Create Category with url_key value: category-1 (let's assume it's ID is 333)
  5. Open Category edit and change scope to extra store
  6. Change url_key to value some-magic-key
  7. Create class that use CategoryRepositoryInterface
  8. Execute $categoryRepository->get(333, 2)

Data is properly saved in the MySQL table:
image

Expected result (*)

  1. Category data with url_key = some-magic-key is returned

Actual result (*)

  1. Category data with url_key = category-1 is returned

Related issues

  1. https://github.com/magento/magento2#12881

Not related issues

  1. Please not treat it as related to Saving product with non-default store scope causes untouched attributes to become store scoped if loaded using ProductRepository #8897: That one is related with EAV error on saving attributes when saved with API.

Metadata

Metadata

Assignees

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.4.0Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions