Skip to content

Commit

Permalink
#39 - "bounded" flag toggle not yet implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Jul 14, 2015
1 parent 01c8190 commit 7e0f096
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/alfio/manager/EventManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import alfio.model.TicketCategory;
import alfio.model.modification.*;
import alfio.model.system.Configuration;
import alfio.model.system.ConfigurationKeys;
import alfio.model.transaction.PaymentProxy;
import alfio.model.user.Organization;
import alfio.repository.*;
Expand Down Expand Up @@ -213,6 +212,9 @@ public void updateCategory(int categoryId, int eventId, TicketCategoryModificati
if((tcm.isTokenGenerationRequested() ^ existing.isAccessRestricted()) && ticketRepository.countConfirmedAndPendingTickets(eventId, categoryId) > 0) {
throw new IllegalStateException("cannot update the category. There are tickets already sold.");
}
if(tcm.isBounded() ^ existing.isBounded()) {
throw new IllegalStateException("Bounded flag modification is not yet implemented.");
}
updateCategory(tcm, event.getVat(), event.isVatIncluded(), event.isFreeOfCharge(), event.getZoneId(), event);
}

Expand Down

0 comments on commit 7e0f096

Please sign in to comment.