Skip to content

Commit

Permalink
Fix saving of product attributes when no product types defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesuva committed Dec 12, 2022
1 parent 051b27e commit 72e3f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/single_page/dashboard/store/products.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function save()
//save product attributes

// only save attributes if product type hasn't changed during save
if (isset($data['pType']) && $data['pType'] == $typeID) {
if (!isset($data['pType']) || (isset($data['pType']) && $data['pType'] == $typeID)) {
$aks = ProductKey::getList();

foreach ($aks as $uak) {
Expand Down

0 comments on commit 72e3f5a

Please sign in to comment.