Merge pull request #18533 from cfoellmann/PR/fix-nature

fix product nature on create
This commit is contained in:
Laurent Destailleur 2021-09-01 18:20:52 +02:00 committed by GitHub
commit 7c429bca0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1268,8 +1268,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
if (empty($conf->global->PRODUCT_DISABLE_NATURE)) {
// Nature
print '<tr><td>'.$form->textwithpicto($langs->trans("NatureOfProductShort"), $langs->trans("NatureOfProductDesc")).'</td><td>';
$statutarray = array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1);
print $formproduct->selectProductNature('finished', $object->finished);
print '</td></tr>';
}
}