diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-06-04 12:29:27 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-06-07 11:22:21 +0200 |
commit | e61d0ada043ece5c22a3907138dab3cd07932c3c (patch) | |
tree | af1b9fa047930500be8b765915945d8e82553c53 /install/ui/association.js | |
parent | 88170087e1470fd91b8c8867004070cf883d3828 (diff) | |
download | freeipa-e61d0ada043ece5c22a3907138dab3cd07932c3c.tar.gz freeipa-e61d0ada043ece5c22a3907138dab3cd07932c3c.tar.xz freeipa-e61d0ada043ece5c22a3907138dab3cd07932c3c.zip |
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
Diffstat (limited to 'install/ui/association.js')
-rw-r--r-- | install/ui/association.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ui/association.js b/install/ui/association.js index ab43518f6..6a1978061 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -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({ |