Przeglądaj źródła

Merge pull request #12618 from frederic34/patch-6

Update product.class.php
Laurent Destailleur 5 lat temu
rodzic
commit
e99d535e5c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      htdocs/product/class/product.class.php

+ 1 - 1
htdocs/product/class/product.class.php

@@ -1201,7 +1201,7 @@ class Product extends CommonObject
                 }
 
                 //We also check if it is a child product
-                if (!$error && ($prodcomb->fetchByFkProductChild($id) > 0) && ($prodcomb->delete($user) < 0)) {
+                if (!$error && ($prodcomb->fetchByFkProductChild($this->id) > 0) && ($prodcomb->delete($user) < 0)) {
                     $error++;
                     $this->errors[] = 'Error deleting child combination';
                 }