If, after scanning in the person barcode, someone scans a bad barcode (they scan their card again or a barcode that is not allowed on that day) the form reports an error and but the barcode stays in the field. A subsequent scan does not erase the barcode but just appends to the bad barcode making it even more eroneous.

I find that adding some jquery right after the focus is shifted can clear this field without creating more problems.

I attach a patch.

CommentFileSizeAuthor
ucount_barcode.js_.diff1.12 KBehowland

Comments

ehowland’s picture

Title: An erroneous barcode stays in the field not allowing a new barcode. » This does not seem to be neccessary for ps2 cuecats

The ps2 driver replaces the field when it does the decoding so this is only important for USB CueCats, defanged CueCats and presumably other scanners.

Anonymous’s picture

Status: Active » Needs review
ehowland’s picture

Status: Needs review » Closed (fixed)

This has been fixed for a long time, closing