Do not delete product automaticaly (unlink only)
This commit is contained in:
parent
31cfc9cd35
commit
d647479794
@ -244,7 +244,7 @@ if ($action === 'confirm_deletecombination') {
|
|||||||
if ($prodcomb->fetch($valueid) > 0) {
|
if ($prodcomb->fetch($valueid) > 0) {
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
if ($prodcomb->delete($user) > 0 && $prodstatic->fetch($prodcomb->fk_product_child) > 0 && $prodstatic->delete($user) > 0) {
|
if ($prodcomb->delete($user) > 0) {
|
||||||
$db->commit();
|
$db->commit();
|
||||||
setEventMessages($langs->trans('RecordSaved'), null, 'mesgs');
|
setEventMessages($langs->trans('RecordSaved'), null, 'mesgs');
|
||||||
header('Location: '.dol_buildpath('/variants/combinations.php?id='.$object->id, 2));
|
header('Location: '.dol_buildpath('/variants/combinations.php?id='.$object->id, 2));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user