Default project classes must be added when we use the clear button to reset the previous search terms.

This commit is contained in:
Tom Vahlman 2012-03-20 18:19:49 +01:00
parent ac51cb76e8
commit 583b0e6b7b

@ -320,7 +320,7 @@ public class SupervisorUnmatchedThesisPanel extends Panel {
private static final long serialVersionUID = 443680343329839590L;
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
((ListView) keyWordsContainer.get("keywordList")).setModelObject(null);
((ListView) keyWordsContainer.get("keywordList")).getModelObject().clear();
titleField.setModelObject(null);
projectClassPanel.getSelectedprojectClasses().clear();
target.addComponent(keyWordsContainer);