fixed hiding of project partner stuff when choosing master

This commit is contained in:
fred-fri 2012-05-11 10:55:23 +09:00
parent c371cf2b14
commit bcb3a690b5

@ -176,10 +176,13 @@ public class ProjectIdeaSubmissionPanel extends Panel {
//there may be other higher levels later, thats why i check for bachelor, cus we know bachelor will always require partners.
if (!projectClassModel.getObject().getName().equalsIgnoreCase("bachelor")){
partnerAdditionPanel.setPartnerRequired(false);
partnerAdditionPanel.setVisible(false);
partnerInfoLink.setVisible(false);
}
target.addComponent(partnerContainer);
target.addComponent(partnerAdditionPanel);
target.addComponent(partnerInfoLink);
}
});