Resolves problem where duplicate blank barcodes threw errors

form now only checks for duplication when the barcode is non-empty
This commit is contained in:
Joshua Ferraro 2008-08-08 15:15:23 -05:00
parent 0f568a8aff
commit 4673e1cc9b
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function check_additem() {
var success = true;
for(i=0;i<barcodes.length;i++){
for(j=0;j<barcodes.length;j++){
if( (i > j) && (barcodes[i].value == barcodes[j].value) ) {
if( (i > j) && (barcodes[i].value == barcodes[j].value) && barcodes[i].value !='') {
barcodes[i].className='error';
barcodes[j].className='error';
success = false;