Skip to content

[Backport] Fix: Attribute Option with zero at the beginning does not work if there is already option with the same number without the zero [REST API]#20560

Closed
mageprince wants to merge 1 commit intomagento:2.2-developfrom
mageprince:2.2-develop-PR-port-19451
Closed

[Backport] Fix: Attribute Option with zero at the beginning does not work if there is already option with the same number without the zero [REST API]#20560
mageprince wants to merge 1 commit intomagento:2.2-developfrom
mageprince:2.2-develop-PR-port-19451

Conversation

@mageprince
Copy link
Copy Markdown
Contributor

Original Pull Request

#19451

Description

Fix: Attribute Option with zero at the beginning does not work if there is already option with the same number without the zero

Fixed Issues

  1. Attribute Option with zero at the bigining does not work if there is already option with the same number without the zero (REST API)) #19436: Attribute Option with zero at the bigining does not work if there is already option with the same number without the zero (REST API)

Manual testing scenarios

  1. Create an attribute (select or multiselect) from the backend (example: attribute_code = brand_number)
  2. add new Option to this attribute from the backend (12345)
  3. Add new Option to this attribute by the REST API (endpoint : /V1/products/attributes/brand_number/options), json = {"option":{"label":"012345"}}
  4. expected result to have two options (12345 and 012345).

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@ghost
Copy link
Copy Markdown

ghost commented Jan 29, 2019

Backport already created #19612

@mageprince
Copy link
Copy Markdown
Contributor Author

@SikailoISM Thanks for the information. I will close my PR :)

@mageprince mageprince closed this Jan 29, 2019
@ghost
Copy link
Copy Markdown

ghost commented Jan 29, 2019

Hi @mageprince, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant