Skip to content

Commit

Permalink
MID-4973 fixing of index out of bounds exception for move org from ro…
Browse files Browse the repository at this point in the history
…ot to member
  • Loading branch information
skublik committed Nov 5, 2018
1 parent cd87244 commit 3c856ba
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -50,6 +50,7 @@
import com.evolveum.midpoint.web.component.util.ObjectWrapperUtil;
import com.evolveum.midpoint.web.component.menu.cog.InlineMenuItemAction;
import com.evolveum.midpoint.web.component.util.SelectableBean;
import com.evolveum.midpoint.web.page.admin.orgs.AbstractOrgTabPanel;
import com.evolveum.midpoint.web.page.admin.orgs.OrgTreeAssignablePanel;
import com.evolveum.midpoint.web.page.admin.orgs.OrgTreePanel;
import com.evolveum.midpoint.web.page.admin.users.PageOrgTree;
Expand Down Expand Up @@ -542,6 +543,10 @@ private void moveConfirmPerformed(SelectableBean<OrgType> orgToMove, SelectableB

parentPage.showResult(result);
target.add(parentPage.getFeedbackPanel());
if(parentPage instanceof PageOrgTree && ((PageOrgTree) parentPage).getTabPanel() != null
&& ((PageOrgTree) parentPage).getTabPanel().getTabbedPanel() != null) {
((PageOrgTree) parentPage).getTabPanel().getTabbedPanel().setSelectedTab(0);
}
setResponsePage(PageOrgTree.class);

}
Expand Down

0 comments on commit 3c856ba

Please sign in to comment.