From e3fb27e3fca66626d51d77c60bf077825a9d01a0 Mon Sep 17 00:00:00 2001 From: Norbert Penel Date: Sat, 30 Nov 2019 19:34:22 +0100 Subject: [PATCH] Default type missing for add links from module builder BOM links to add product don't precise the type (from common object) --- htdocs/product/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index db6b60172be..2b92273023c 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -70,7 +70,7 @@ $refalreadyexists = 0; $id = GETPOST('id', 'int'); $ref = GETPOST('ref', 'alpha'); -$type = GETPOST('type', 'int'); +$type = (GETPOST('type', 'int') !== '')? GETPOST('type', 'int'):Product::TYPE_PRODUCT; $action = (GETPOST('action', 'alpha') ? GETPOST('action', 'alpha') : 'view'); $cancel = GETPOST('cancel', 'alpha'); $backtopage = GETPOST('backtopage', 'alpha');