Closed
Description
Wrong evaluating check of position param (Position at which item should be inserted.)
let hang Checkout Page
Preconditions
- Centos 6.7 Final
- Plesk 12.5 (Apache 2.2.15)
- Magento 2.1.7
- PHP 5.6
- Existing set of configurable products and linked simple products
Steps to reproduce
- Put in cart at least one simple product from a configurable product page
- Go to checkout page
Expected result
- Checkout page displays steps to complete payment.
Actual result
- After waiting a bit, the body of the page rests blank
- in console appears a javascript error: element position is null
Fixed Issues (if relevant)
lib/web/mage/utils/arrays.js
Line 105
from
if (typeof position === 'undefined') {
to
if (typeof position === 'undefined' || position == null) {
Manual testing scenarios
May happens while buying simple products of configurable products