From b343a7b910069b6503f3740423f84dfc26d38e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 9 May 2025 23:48:07 +0200 Subject: [PATCH] fix input with PRODUCT_USE_UNITS at create step (#34081) * fix input with PRODUCT_USE_UNITS at create step * Update card.php * Update card.php --- htdocs/product/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index e10dbc20e46..6f873bd888b 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1628,7 +1628,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio // Default workstation print ''.$langs->trans("DefaultWorkstation").''; print img_picto($langs->trans("DefaultWorkstation"), 'workstation', 'class="pictofixedwidth"'); - print $formproduct->selectWorkstations($object->fk_default_workstation, 'fk_default_workstation', 1); + print $formproduct->selectWorkstations((GETPOSTISSET('fk_default_workstation') ? GETPOSTINT('fk_default_workstation') : ''), 'fk_default_workstation', 1); print ''; } @@ -1643,7 +1643,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio if ($object->duration_value > 0) { print '     '; } - print 'mandatory_period == 1 ? ' checked="checked"' : '').'>'; + print ''; print '