Commit 65a27b22 by Tuukka Kivilahti

changes

1 parent 7be70004
...@@ -187,6 +187,16 @@ public class BarcodeBean implements BarcodeBeanLocal { ...@@ -187,6 +187,16 @@ public class BarcodeBean implements BarcodeBeanLocal {
public EventUser getUser(String barcode) { public EventUser getUser(String barcode) {
if(barcode == null || barcode.isEmpty()) if(barcode == null || barcode.isEmpty())
return null; return null;
// trim zeros off from barcode
String stripped = barcode;
while(stripped.length() > 0 && stripped.charAt(0) == '0') {
stripped = stripped.substring(1);
}
if(stripped.length() > 0)
barcode = stripped;
try { try {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!