mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removal of illegal options in association dialog
Association dialogs were using non-existent options for find commands. It causes error when #2509 is implemented. Now when creating a find command a check for options existence is performend. Option is not used if not present in metadata. It fixes the issue. https://fedorahosted.org/freeipa/ticket/2760
This commit is contained in:
parent
88170087e1
commit
e61d0ada04
@ -201,7 +201,11 @@ IPA.association_adder_dialog = function(spec) {
|
||||
var relationship = relationships[other_attribute_member];
|
||||
if (relationship) {
|
||||
var param_name = relationship[2] + that.entity.name;
|
||||
options[param_name] = that.pkey;
|
||||
var cmd_opt = IPA.get_command_option(that.other_entity.name + '_find',
|
||||
param_name);
|
||||
if (cmd_opt) {
|
||||
options[param_name] = that.pkey;
|
||||
}
|
||||
}
|
||||
|
||||
IPA.command({
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user