From a95b44face7f3001a27e2ff42c07a5ae1edabc83 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 8 Sep 2011 09:44:17 -0500 Subject: 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 --- install/ui/association.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'install/ui/association.js') diff --git a/install/ui/association.js b/install/ui/association.js index 1c9776b0..c7a1b6c0 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, -- cgit