FIX avoid error, fetch of product is mandatory (by id or by ref)

This commit is contained in:
Regis Houssin 2022-10-13 08:34:23 +02:00
parent 92c807d0df
commit 9ec41c1a44

View File

@ -200,12 +200,12 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
// Fetch of product is mandatory
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}