Browse Source

Copy also parent on product duplication

Vova Tkach 5 years ago
parent
commit
4cb42f776e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/module_shop_act_duplicate.go

+ 2 - 0
modules/module_shop_act_duplicate.go

@@ -36,6 +36,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 			// Duplicate product
 			res, err := tx.Exec(
 				`INSERT INTO shop_products (
+					parent_id,
 					user,
 					currency,
 					price,
@@ -49,6 +50,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					datetime,
 					active
 				) SELECT
+					parent_id,
 					user,
 					currency,
 					price,