Repository: syncope Updated Branches: refs/heads/master d49db50e8 -> c6847708c
[SYNCOPE-1226] Removed schemas are now correctly no more displayed in 'Selected' list in 'Attributes to be displayed' view Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c6847708 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c6847708 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c6847708 Branch: refs/heads/master Commit: c6847708ca13e94c5b0b9f9d974c380fc2cd7e90 Parents: d49db50 Author: skylark17 <matteo.alessandr...@tirasa.net> Authored: Mon Nov 27 11:44:17 2017 +0100 Committer: skylark17 <matteo.alessandr...@tirasa.net> Committed: Mon Nov 27 11:45:08 2017 +0100 ---------------------------------------------------------------------- .../client/console/panels/DisplayAttributesModalPanel.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/c6847708/client/console/src/main/java/org/apache/syncope/client/console/panels/DisplayAttributesModalPanel.java ---------------------------------------------------------------------- diff --git a/client/console/src/main/java/org/apache/syncope/client/console/panels/DisplayAttributesModalPanel.java b/client/console/src/main/java/org/apache/syncope/client/console/panels/DisplayAttributesModalPanel.java index a87577d..2b36dc2 100644 --- a/client/console/src/main/java/org/apache/syncope/client/console/panels/DisplayAttributesModalPanel.java +++ b/client/console/src/main/java/org/apache/syncope/client/console/panels/DisplayAttributesModalPanel.java @@ -120,6 +120,10 @@ public abstract class DisplayAttributesModalPanel<T extends Serializable> extend selectedDerSchemas = prefMan.getList(getRequest(), DisplayAttributesModalPanel.getPrefDerivedAttributeView(type)); + // remove old schemas from selected lists + selectedPlainSchemas.retainAll(pSchemaNames); + selectedDerSchemas.retainAll(dSchemaNames); + final WebMarkupContainer container = new WebMarkupContainer("container"); container.setOutputMarkupId(true); add(container);