Show saving message after the changes have really been done

Otherwise if an exception happens it would tell the user that the
allocation has been saved, when in reality it hasn't been saved due to
the exception.

FEA: ItEr69S04BugFixing
This commit is contained in:
Óscar González Fernández 2011-01-24 18:26:29 +01:00
parent 30509aa3d1
commit be4bc0092f

View file

@ -739,16 +739,16 @@ public class AdvancedAllocationController extends GenericForwardComposer {
restriction.markInvalidTotalHours(groupingRow, totalHours);
}
}
for (AllocationInput allocationInput : allocationInputs) {
allocationInput.getResultReceiver().accepted(
allocationInput.getAggregate());
}
try {
Messagebox.show(_("Advanced assignment saved"), _("Information"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
for (AllocationInput allocationInput : allocationInputs) {
allocationInput.getResultReceiver().accepted(
allocationInput.getAggregate());
}
}
public void onClick$cancelButton() {