Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07dbede4
authored
Dec 27, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdf
1 parent
9aaaffd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
code/moya-database/src/main/java/fi/codecrew/moya/model/GenericEntity.java
code/moya-web/src/main/java/fi/codecrew/moya/web/flow/IncomingView.java
code/moya-database/src/main/java/fi/codecrew/moya/model/GenericEntity.java
View file @
07dbede
...
...
@@ -55,6 +55,8 @@ public class GenericEntity extends EntityEquals implements ModelInterface, Entit
@Override
public
JsonObject
getMeta
()
{
// TODO: do not return null, it's not logical
// empty jsonobject would be moar logical (maybe?)
return
meta
;
}
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/flow/IncomingView.java
View file @
07dbede
...
...
@@ -273,21 +273,20 @@ public class IncomingView extends GenericCDIView {
*/
public
String
getCardFiling
()
{
String
ret
=
""
;
// try {
PrintedCard
card
=
cardBean
.
checkPrintedCard
(
userview
.
getSelectedUser
());
if
(
card
!=
null
)
{
JsonObject
cardMeta
=
card
.
getMeta
();
JsonObject
cardFilingObject
=
cardMeta
.
getJsonObject
(
"card-filing"
);
if
(
cardFilingObject
!=
null
)
{
ret
=
cardFilingObject
.
getString
(
"cardplace"
);
if
(
cardMeta
!=
null
)
{
JsonObject
cardFilingObject
=
cardMeta
.
getJsonObject
(
"card-filing"
);
if
(
cardFilingObject
!=
null
)
{
ret
=
cardFilingObject
.
getString
(
"cardplace"
);
}
}
}
// Hmm, onkohan tää ihan tarkoituksenmukaista?
// (mergerequestin tekijä vois arvioida)
// } catch (Exception e) {
// logger.warn("Could not get card filing info", e);
// }
return
ret
;
}
...
...
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