Commit fd6cc3e5 by Tuukka Kivilahti

just to be sure

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