Merge pull request #5842 from defrance/patch-30

Duplicate object Product declaration
This commit is contained in:
Laurent Destailleur 2016-10-06 23:55:52 +02:00 committed by GitHub
commit 3c67d75348

View File

@ -80,7 +80,6 @@ $extrafields = new ExtraFields($db);
// fetch optionals attributes and labels
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
$object = new Product($db);
if ($id > 0 || ! empty($ref))
{
$result = $object->fetch($id, $ref);