Fix barcode choice lost if error
This commit is contained in:
parent
804b806d02
commit
88aadae934
@ -753,16 +753,11 @@ END;
|
|||||||
|
|
||||||
// Barcode type
|
// Barcode type
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td>'.$langs->trans('BarcodeType').'</td>';
|
print '<td>'.$langs->trans('GencodBuyPrice').'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $formbarcode->selectBarcodeType(($rowid ? $object->supplier_fk_barcode_type : getDolGlobalint("PRODUIT_DEFAULT_BARCODE_TYPE")), 'fk_barcode_type', 1);
|
print img_picto('', 'barcode', 'class="pictofixedwidth"');
|
||||||
print '</td>';
|
print $formbarcode->selectBarcodeType((GETPOSTISSET('fk_barcode_type') ? GETPOST('fk_barcode_type', 'int') : ($rowid ? $object->supplier_fk_barcode_type : getDolGlobalint("PRODUIT_DEFAULT_BARCODE_TYPE"))), 'fk_barcode_type', 1);
|
||||||
print '</tr>';
|
print ' <input class="flat" name="barcode" value="'.(GETPOSTISSET('barcode') ? GETPOST('barcode') : ($rowid ? $object->supplier_barcode : '')).'"></td>';
|
||||||
|
|
||||||
// Barcode value
|
|
||||||
print '<tr>';
|
|
||||||
print '<td>'.$langs->trans('BarcodeValue').'</td>';
|
|
||||||
print '<td>'.img_picto('', 'barcode', 'class="pictofixedwidth"').'<input class="flat" name="barcode" value="'.($rowid ? $object->supplier_barcode : '').'"></td>';
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user