You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by fm...@apache.org on 2017/02/27 15:24:07 UTC
[3/4] syncope git commit: [SYNCOPE-1032] role key is writable if the
role has being created
[SYNCOPE-1032] role key is writable if the role has being created
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/08702cc7
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/08702cc7
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/08702cc7
Branch: refs/heads/2_0_X
Commit: 08702cc79dbd1857ba4921293a98b975d3012857
Parents: 28e171b
Author: fmartelli <fa...@gmail.com>
Authored: Mon Feb 27 16:14:34 2017 +0100
Committer: fmartelli <fa...@gmail.com>
Committed: Mon Feb 27 16:14:34 2017 +0100
----------------------------------------------------------------------
.../syncope/client/console/wizards/role/RoleWizardBuilder.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/08702cc7/client/console/src/main/java/org/apache/syncope/client/console/wizards/role/RoleWizardBuilder.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wizards/role/RoleWizardBuilder.java b/client/console/src/main/java/org/apache/syncope/client/console/wizards/role/RoleWizardBuilder.java
index 744b9b7..7841c8e 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wizards/role/RoleWizardBuilder.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wizards/role/RoleWizardBuilder.java
@@ -102,7 +102,8 @@ public class RoleWizardBuilder extends AjaxWizardBuilder<RoleWrapper> {
public Details(final RoleWrapper modelObject) {
add(new AjaxTextFieldPanel(
- "key", "key", new PropertyModel<String>(modelObject.getInnerObject(), "key"), false));
+ "key", "key", new PropertyModel<String>(modelObject.getInnerObject(), "key"), false).
+ setEnabled(StringUtils.isEmpty(modelObject.getInnerObject().getKey())));
// ------------------------
// dynMembershipCond