Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 974 → Rev 975

/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java
109,7 → 109,7
DynaActionForm theForm = (DynaActionForm)form;
Long eventId = StringConverter.parseLong(theForm.get("event"));
Event event = EventManager.getInstance().get(eventId, true);
String ident = (String)theForm.get("ident");
String ident = ((String)theForm.get("ident")).trim();
DynaActionForm showForm = (DynaActionForm)RequestUtilsX.populateActionForm(
this, request, "ParticipantRegisterEditForm");
 
154,7 → 154,7
DynaActionForm theForm = (DynaActionForm)form;
Long eventId = StringConverter.parseLong(theForm.get("event"));
Event event = EventManager.getInstance().get(eventId, true);
String ident = (String)theForm.get("ident");
String ident = ((String)theForm.get("ident")).trim();
Participant participant = ParticipantManager.getInstance().findForIdent(ident);
 
request.setAttribute("event", event);
/kickup/trunk/src/ak/kickup/core/model/ParticipantManager.java
164,6 → 164,7
throws ModelException
{
try {
participant.getEvent().removeParticipant(participant);
HibernateUtil.currentSession().delete(participant);
}
catch(HibernateException ex)
/kickup/trunk/src/ak/kickup/core/model/Event.java
445,4 → 445,9
{
this.participants = participants;
}
 
protected void removeParticipant(Participant participant)
{
participants.remove(participant);
}
}