Commit fd6cc3e5 by Tuukka Kivilahti

just to be sure

1 parent cc731e52
......@@ -619,9 +619,10 @@ public class PlaceBean implements PlaceBeanLocal {
gmemfacade.remove(res);
}
PlaceSlot slot = placeSlotFacade.findSlotForPlace(place);
// remove also slot from place
if(place.getReserverSlot() != null) {
PlaceSlot slot = placeSlotFacade.reload(place.getReserverSlot());
if(slot != null) {
slot.setPlace(null);
place.setReserverSlot(null);
}
......
......@@ -310,6 +310,10 @@ public class Place extends GenericEntity implements Comparable<Place> {
return buyable;
}
/**
* NOTE: you can newer be sure that this is up to date
* @return
*/
public PlaceSlot getReserverSlot() {
return reserverSlot;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!