summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-20 22:31:37 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-07-21 15:34:07 +0000
commitf210a08268003c1b2ac6aed7bda13be4d96f3abf (patch)
tree682c3ee0735e135b881ef8b841f63d30d5cbffd6
parent8e8ad513a73f8f08e2cfac1914ee0950b66f7866 (diff)
downloadfreeipa-f210a08268003c1b2ac6aed7bda13be4d96f3abf.zip
freeipa-f210a08268003c1b2ac6aed7bda13be4d96f3abf.tar.gz
freeipa-f210a08268003c1b2ac6aed7bda13be4d96f3abf.tar.xz
Removed entitlement registration UUID field.
The UUID field has been removed from the entitlement registration dialog box because it's currently not supported. The code has been modified not to send empty UUID value should this become supported in the future. Ticket #1506
-rw-r--r--install/ui/entitle.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/install/ui/entitle.js b/install/ui/entitle.js
index b3b09e5..bbcf239 100644
--- a/install/ui/entitle.js
+++ b/install/ui/entitle.js
@@ -131,12 +131,14 @@ IPA.entity_factories.entitle = function() {
label: IPA.get_method_option('entitle_register', 'password').label,
type: 'password',
undo: false
- },
- {
+ }
+/* currently not supported
+ , {
name: 'ipaentitlementid',
label: IPA.get_method_option('entitle_register', 'ipaentitlementid').label,
undo: false
}
+*/
]
}).
dialog({
@@ -254,8 +256,7 @@ IPA.entitle.entity = function(spec) {
method: 'register',
args: [ username ],
options: {
- password: password,
- ipaentitlementid: ipaentitlementid
+ password: password
},
on_success: function(data, text_status, xhr) {
that.status = IPA.entitle.online;
@@ -266,6 +267,10 @@ IPA.entitle.entity = function(spec) {
on_error: on_error
});
+ if (ipaentitlementid) {
+ command.set_option('ipaentitlementid', ipaentitlementid);
+ }
+
command.execute();
};