If a variation does not have an attribute that has been assigned to said variation, the following error appears:

Error: Call to a member function id() on null in Drupal\commerce_product\Plugin\Field\FieldFormatter\ProductAttributesOverview->getAttributeItemList() (line 223 of modules/contrib/commerce/modules/product/src/Plugin/Field/FieldFormatter/ProductAttributesOverview.php).

CommentFileSizeAuthor
#2 3428142-2.patch908 bytesmistrae

Comments

Mistrae created an issue. See original summary.

mistrae’s picture

Status: Active » Needs review
StatusFileSize
new908 bytes

Patch attached

  • jsacksick committed 65a16cf1 on 8.x-2.x
    Issue #3428142 by Mistrae: Variation without asigned attributes fail
    

  • jsacksick committed 11d601ad on 3.0.x
    Issue #3428142 by Mistrae: Variation without asigned attributes fail
    
jsacksick’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.