Closed mdius closed 2 years ago
I'd say that's the best way to address this for now, I've pushed that up to the master branch.
Why it's undefined in the first place is perhaps a better question to ask, but if it's all saving and working as expected there might not anything to fix as such.
Now I am getting a "Undefined array key "optGroup0"" /packages/community_store/src/CommunityStore/Product/ProductOption/ProductOption.php
I fixed it by changing the line to: "$itemsInGroup = isset($data['optGroup' . $i]) && is_array($data['optGroup' . $i]) ? count($data['optGroup' . $i]) : 0;" I don't know if that is the proper way, but it is seeming to work.