No need to set tmpproduct properties because fetched.

This commit is contained in:
Francis Appels 2022-08-11 18:26:18 +02:00
parent 251e0b1364
commit 4167cca051

View File

@ -1233,9 +1233,6 @@ if ($id > 0 || !empty($ref)) {
} else {
$tmpproduct = $conf->cache['product'][$objp->fk_product];
}
$tmpproduct->id = $objp->fk_product;
$tmpproduct->ref = $objp->ref;
$tmpproduct->label = $objp->label;
print $tmpproduct->getNomUrl(1);
print ' - '.$objp->label;
print "</td>\n";