Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 65a27b22
authored
Jun 06, 2013
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
1 parent
7be70004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BarcodeBean.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BarcodeBean.java
View file @
65a27b2
...
...
@@ -187,6 +187,16 @@ public class BarcodeBean implements BarcodeBeanLocal {
public
EventUser
getUser
(
String
barcode
)
{
if
(
barcode
==
null
||
barcode
.
isEmpty
())
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
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment