Skip to content

Visual Swatch is deleted when updating option through REST API #37794

Open
@elzekool

Description

@elzekool

Preconditions and environment

  • Magento version 2.4.*
  • Attribute that uses a visual swatch (e.g. color)

Steps to reproduce

  1. Make sure that you have an attribute with a visual swatch (in default example this is color)
  2. Update option value through REST API /rest/all/V1/products/attributes/[attribute_code]/options/[option_id] (for example to update translations)

Expected result

Attribute labels are updated and swatches remain as-is

Actual result

Attribute labels are updated but swatch data is deleted

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsComponent: AttributesIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions