Ideas

Product Management can not handle arrays in product attributes

spryker/product-management 0.3.2

What you did

We store also array data in product attributes. It is json anyways, so no reason to use only strings

Actual Behavior

error on AbstractProductFormDataProvider:510
mb_strlen($value) > 255;
$value is expected to be a string, array given

Expected Behavior

Product management should also work with arrays as Attribute values for concrete and abstract Products

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 15 2018
  • In review
  • Attach files
  • Admin
    Jeremy Fourna commented
    December 11, 2018 09:03

    Example for a product that has 2 colors:

    'color': ['red', 'green']