stickler corrections

This commit is contained in:
altairis-noe 2021-04-13 11:21:41 +02:00
parent eee40a1840
commit a95911e096

View File

@ -309,8 +309,7 @@ if (empty($reshook)) {
$object->status_batch = GETPOST('status_batch'); $object->status_batch = GETPOST('status_batch');
if ($object->status_batch !== 0) { if ($object->status_batch !== 0) {
$object->batch_mask = GETPOST('batch_mask'); $object->batch_mask = GETPOST('batch_mask');
} } else $object->batch_mask = '';
else $object->batch_mask = '';
$object->barcode_type = GETPOST('fk_barcode_type'); $object->barcode_type = GETPOST('fk_barcode_type');
$object->barcode = GETPOST('barcode'); $object->barcode = GETPOST('barcode');
@ -481,8 +480,7 @@ if (empty($reshook)) {
$object->status_batch = GETPOST('status_batch', 'aZ09'); $object->status_batch = GETPOST('status_batch', 'aZ09');
if ($object->status_batch !== 0) { if ($object->status_batch !== 0) {
$object->batch_mask = GETPOST('batch_mask', 'alpha'); $object->batch_mask = GETPOST('batch_mask', 'alpha');
} } else $object->batch_mask = '';
else $object->batch_mask = '';
$object->fk_default_warehouse = GETPOST('fk_default_warehouse'); $object->fk_default_warehouse = GETPOST('fk_default_warehouse');
// removed from update view so GETPOST always empty // removed from update view so GETPOST always empty
/* /*
@ -1132,7 +1130,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
} }
print '</tr>'; print '</tr>';
} }
$showbarcode = empty($conf->barcode->enabled) ? 0 : 1; $showbarcode = empty($conf->barcode->enabled) ? 0 : 1;
@ -2130,7 +2127,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '<tr><td>'.$langs->trans("ManageLotMask").'</td><td colspan="2">'; print '<tr><td>'.$langs->trans("ManageLotMask").'</td><td colspan="2">';
print $object->batch_mask; print $object->batch_mask;
print '</td></tr>'; print '</td></tr>';
} }
} }
} }