Skip to content

changing configurable product name in 2.2.0 dev causes undefined index: label error #7058

@dmcmillin

Description

@dmcmillin

Preconditions

  1. magento 2.2.0-dev
  2. php 5.6

Steps to reproduce

  1. install magento 2.2.0-dev
  2. setup multiple configurable products with multiple attributes
  3. change product name.

Expected result

  1. the product name should change

Actual result

  1. Notice: Undefined index: label in app/code/Magento/Catalog/Model/Product/Gallery/CreateHandler.php on line 161

Cleared cache, tried with both compile mode and not compiled mode. ran setup:upgrade each time.

 if (in_array($attrData, array_keys($existImages))) {
                $product->setData($mediaAttrCode . '_label', $existImages[$attrData]['label']);

is the section it errors at.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions