Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 4d3b6587
authored
Feb 19, 2013
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eventuser creation when user logs in to new event..
1 parent
98e275cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/PlaceBean.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/facade/EventUserFacade.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/PlaceBean.java
View file @
4d3b658
...
@@ -483,11 +483,11 @@ public class PlaceBean implements PlaceBeanLocal {
...
@@ -483,11 +483,11 @@ public class PlaceBean implements PlaceBeanLocal {
@RolesAllowed
(
MapPermission
.
S_BUY_PLACES
)
@RolesAllowed
(
MapPermission
.
S_BUY_PLACES
)
public
Place
unbuyPlace
(
Place
place
)
{
public
Place
unbuyPlace
(
Place
place
)
{
place
=
placeFacade
.
reload
(
place
);
place
=
placeFacade
.
reload
(
place
);
if
(
place
.
getGroup
()
!=
null
)
{
if
(
place
.
getGroup
()
!=
null
)
{
place
.
getGroup
().
getPlaces
().
remove
(
place
);
place
.
getGroup
().
getPlaces
().
remove
(
place
);
place
.
setGroup
(
null
);
}
}
place
.
setGroup
(
null
);
if
(
place
.
getPlaceReserver
()
!=
null
)
if
(
place
.
getPlaceReserver
()
!=
null
)
{
{
...
...
code/MoyaBeans/ejbModule/fi/codecrew/moya/facade/EventUserFacade.java
View file @
4d3b658
...
@@ -27,8 +27,6 @@ import fi.codecrew.moya.facade.callbacks.OrderCallback;
...
@@ -27,8 +27,6 @@ import fi.codecrew.moya.facade.callbacks.OrderCallback;
import
fi.codecrew.moya.model.EventUser
;
import
fi.codecrew.moya.model.EventUser
;
import
fi.codecrew.moya.model.EventUser_
;
import
fi.codecrew.moya.model.EventUser_
;
import
fi.codecrew.moya.model.LanEvent
;
import
fi.codecrew.moya.model.LanEvent
;
import
fi.codecrew.moya.model.PrintedCard
;
import
fi.codecrew.moya.model.PrintedCard_
;
import
fi.codecrew.moya.model.User
;
import
fi.codecrew.moya.model.User
;
import
fi.codecrew.moya.model.User_
;
import
fi.codecrew.moya.model.User_
;
import
fi.codecrew.moya.util.UserSearchQuery
;
import
fi.codecrew.moya.util.UserSearchQuery
;
...
@@ -64,7 +62,8 @@ public class EventUserFacade extends IntegerPkGenericFacade<EventUser> {
...
@@ -64,7 +62,8 @@ public class EventUserFacade extends IntegerPkGenericFacade<EventUser> {
event
));
event
));
ret
=
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
ret
=
getSingleNullableResult
(
getEm
().
createQuery
(
cq
));
logincache
.
get
(
event
.
getId
()).
put
(
ret
.
getLogin
(),
ret
.
getId
());
if
(
ret
!=
null
)
logincache
.
get
(
event
.
getId
()).
put
(
ret
.
getLogin
(),
ret
.
getId
());
}
}
return
ret
;
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