diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-08 09:44:17 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-09 19:47:27 +0000 |
commit | a95b44face7f3001a27e2ff42c07a5ae1edabc83 (patch) | |
tree | 42c9ecd1253a2f6680355c141cd82f91b7dff418 /install/ui/association.js | |
parent | 26ded75be94e60a34a19d06ce4a5fb3185875cd5 (diff) | |
download | freeipa-a95b44face7f3001a27e2ff42c07a5ae1edabc83.tar.gz freeipa-a95b44face7f3001a27e2ff42c07a5ae1edabc83.tar.xz freeipa-a95b44face7f3001a27e2ff42c07a5ae1edabc83.zip |
Fixed sudo rule association dialogs.
The adder dialog for the user and host tables in sudo rule details
page have been fixed to use --not-in-sudorules to avoid showing
entries that are already added into the rule either directly or
indirectly via groups.
This does not apply to the command and run-as tables because they
do not support such option.
Ticket #1768
Diffstat (limited to 'install/ui/association.js')
-rw-r--r-- | install/ui/association.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/install/ui/association.js b/install/ui/association.js index 1c9776b0e..c7a1b6c0b 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -493,13 +493,15 @@ IPA.association_table_widget = function (spec) { }; that.create_add_dialog = function() { + + var entity_label = that.entity.metadata.label_singular; var pkey = IPA.nav.get_state(that.entity.name+'-pkey'); - var label = IPA.metadata.objects[that.other_entity].label; + var other_entity_label = IPA.metadata.objects[that.other_entity].label; var title = that.add_title; - title = title.replace('${entity}', that.entity.metadata.label_singular); + title = title.replace('${entity}', entity_label); title = title.replace('${primary_key}', pkey); - title = title.replace('${other_entity}', label); + title = title.replace('${other_entity}', other_entity_label); return IPA.association_adder_dialog({ title: title, |