File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
ConfigurableProductSales/Model/Order/Reorder Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function __construct(
4545 public function isAvailable (Item $ item )
4646 {
4747 $ buyRequest = $ item ->getBuyRequest ();
48- $ superAttribute = $ buyRequest ->getData ()['super_attribute ' ];
48+ $ superAttribute = $ buyRequest ->getData ()['super_attribute ' ] ?? [] ;
4949 $ connection = $ this ->getConnection ();
5050 $ select = $ connection ->select ();
5151 $ orderItemParentId = $ item ->getParentItem ()->getProductId ();
Original file line number Diff line number Diff line change @@ -745,6 +745,9 @@ public function saveItemOptions()
745745 unset($ this ->_options [$ index ]);
746746 unset($ this ->_optionsByCode [$ option ->getCode ()]);
747747 } else {
748+ if (!$ option ->getItem () || !$ option ->getItem ()->getId ()) {
749+ $ option ->setItem ($ this );
750+ }
748751 $ option ->save ();
749752 }
750753 }
You can’t perform that action at this time.
0 commit comments