You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by gi...@apache.org on 2016/08/01 12:38:12 UTC
syncope git commit: [SYNCOPE-911] Enduser now allows empty value in
non required enum field
Repository: syncope
Updated Branches:
refs/heads/master c533ba9f8 -> aa5da972b
[SYNCOPE-911] Enduser now allows empty value in non required enum field
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/aa5da972
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/aa5da972
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/aa5da972
Branch: refs/heads/master
Commit: aa5da972be00beac028e0ab0c8fb88d96fdf2c20
Parents: c533ba9
Author: giacomolm <gi...@hotmail.it>
Authored: Mon Aug 1 14:37:33 2016 +0200
Committer: giacomolm <gi...@hotmail.it>
Committed: Mon Aug 1 14:37:33 2016 +0200
----------------------------------------------------------------------
.../resources/app/js/directives/dynamicPlainAttribute.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/aa5da972/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js b/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
index 7d09286..26e1311 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/directives/dynamicPlainAttribute.js
@@ -40,6 +40,10 @@ angular.module('self')
break;
case "Enum":
$scope.enumerationValues = [];
+ //SYNCOPE-911 empty value option on non required attributes
+ if(schema.mandatoryCondition){
+ $scope.enumerationValues.push("");
+ }
var enumerationValuesSplitted = schema.enumerationValues.toString().split(";");
for (var i = 0; i < enumerationValuesSplitted.length; i++) {
$scope.enumerationValues.push(enumerationValuesSplitted[i]);