mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user