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
This commit is contained in:
parent
dea5209fef
commit
b343a7b910
1 changed files with 3 additions and 3 deletions
|
|
@ -1628,7 +1628,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
// Default workstation
|
||||
print '<tr><td>'.$langs->trans("DefaultWorkstation").'</td><td>';
|
||||
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 '</td></tr>';
|
||||
}
|
||||
|
||||
|
|
@ -1643,7 +1643,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
if ($object->duration_value > 0) {
|
||||
print ' ';
|
||||
}
|
||||
print '<input type="checkbox" class="marginleftonly valignmiddle" id="mandatoryperiod" name="mandatoryperiod"'.($object->mandatory_period == 1 ? ' checked="checked"' : '').'>';
|
||||
print '<input type="checkbox" class="marginleftonly valignmiddle" id="mandatoryperiod" name="mandatoryperiod"'.(GETPOSTISSET('mandatoryperiod') ? ' checked="checked"' : '').'>';
|
||||
print '<label for="mandatoryperiod">';
|
||||
$htmltooltip = $langs->trans("mandatoryHelper");
|
||||
if (!getDolGlobalString('SERVICE_STRICT_MANDATORY_PERIOD')) {
|
||||
|
|
@ -1712,7 +1712,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
if (getDolGlobalString('PRODUCT_USE_UNITS')) {
|
||||
print '<tr><td>'.$langs->trans('DefaultUnitToShow').'</td>';
|
||||
print '<td>';
|
||||
print $form->selectUnits(empty($line->fk_unit) ? getDolGlobalString('PRODUCT_USE_UNITS') : $line->fk_unit, 'units');
|
||||
print $form->selectUnits(GETPOSTISSET('unit') ? GETPOST('unit', 'alpha') : (GETPOST('unit', 'alpha') ?: '0'), 'units');
|
||||
print '</td></tr>';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue