2984 PO 1) Don't show rejection form again after rejecting a final thesis and then immediately uploading a new version
This commit is contained in:
parent
c2c7551c39
commit
f67eca8e87
view/src/main/java/se/su/dsv/scipro/finalthesis
@ -190,6 +190,11 @@ public class ApproveFinalThesisPanel extends GenericPanel<Project> {
|
||||
protected void cancel() {
|
||||
showRejectionPanel(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onRejection() {
|
||||
showRejectionPanel(false);
|
||||
}
|
||||
};
|
||||
rejectFinalThesisPanel.setVisibilityAllowed(false);
|
||||
final WebMarkupContainer rejectContainer = new WebMarkupContainer(REJECT_CONTAINER);
|
||||
|
@ -93,8 +93,7 @@ public class RejectFinalThesisPanel extends GenericPanel<Project> {
|
||||
|
||||
protected void cancel(){}
|
||||
|
||||
private void onCreate() {
|
||||
finalThesisService.reject(getModelObject());
|
||||
protected void onRejection() {
|
||||
}
|
||||
|
||||
protected void onSubmit() {
|
||||
@ -107,7 +106,8 @@ public class RejectFinalThesisPanel extends GenericPanel<Project> {
|
||||
projectForumService.createThread(project.getObject(), user,
|
||||
REJECTED_SUBJECT, contentArea.getInput(), uploads);
|
||||
|
||||
onCreate();
|
||||
finalThesisService.reject(getModelObject());
|
||||
onRejection();
|
||||
setResponsePage(getPage());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user