diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 019ec50dd1f..3528d5ef299 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1236,13 +1236,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { } if ($type != 1) { // Nature, Weight and volume only applies to products and not to services - if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { - // Nature - print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; - $statutarray = array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1); - print ''; - } + if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { + // Nature + print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; + $statutarray = array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); + print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1); + print ''; + } if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) { // Brut Weight @@ -1759,12 +1759,12 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { print $formproduct->selectMeasuringUnits("duration_unit", "time", $object->duration_unit, 0, 1); print ''; } else { - if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { - // Nature - print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; - print $formproduct->selectProductNature('finished', $object->finished); - print ''; - } + if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { + // Nature + print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; + print $formproduct->selectProductNature('finished', $object->finished); + print ''; + } if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) { // Brut Weight @@ -2242,12 +2242,12 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { print ''; } else { - if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { - // Nature - print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; - print $object->getLibFinished(); - print ''; - } + if (empty($conf->global->PRODUCT_DISABLE_NATURE)) { + // Nature + print ''.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).''; + print $object->getLibFinished(); + print ''; + } // Brut Weight if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {