This patch removes following non-existing command options:
 * all,rights in host_disable
 * record_type in dns_record_add
* all,rights in various xxx_remove_xxx commands used in rule_association_table_field (removing association)

https://fedorahosted.org/freeipa/ticket/2878
--
Petr Vobornik
From 4f420fcf5d36bffac10bf860a3f50d766748055d Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Wed, 27 Jun 2012 16:19:14 +0200
Subject: [PATCH] Continuation of removingi of not supported command options
 from Web UI

This patch removes following non-existing command options:
 * all,rights in host_disable
 * record_type in dns_record_add
 * all,rights in various xxx_remove_xxx commands used in rule_association_table_field (removing association)

https://fedorahosted.org/freeipa/ticket/2878
---
 install/ui/dns.js  |    2 +-
 install/ui/host.js |    1 -
 install/ui/rule.js |    3 +--
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/install/ui/dns.js b/install/ui/dns.js
index 183bf67d3791309e15307f43c8e2cffa0af94e8c..492d8c4f7ded27191f60d7fa154882db231e6f1d 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -1042,7 +1042,7 @@ IPA.dns.record_entity = function(spec) {
                 {
                     name: 'record_type',
                     type: 'dnsrecord_type',
-                    enabled: false,
+                    flags: ['no_command'],
                     widget: 'general.record_type'
                 }
             ],
diff --git a/install/ui/host.js b/install/ui/host.js
index c53ba05394771ce1f41bc7b6e15e664c6d10c86c..cea2019b8cbda5c4b347883ae1036f2367f7217a 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -648,7 +648,6 @@ IPA.host_unprovision_dialog = function(spec) {
             entity: that.entity.name,
             method: 'disable',
             args: pkey,
-            options: { all: true, rights: true },
             on_success: on_success,
             on_error: on_error
         });
diff --git a/install/ui/rule.js b/install/ui/rule.js
index b7e6a74a238537f8f23121eb0da5f54c9e6dda88..dfe710b9134d08c19254c5de46d36500b7b6448a 100644
--- a/install/ui/rule.js
+++ b/install/ui/rule.js
@@ -209,8 +209,7 @@ IPA.rule_association_table_field = function(spec) {
                 var command = IPA.command({
                     entity: that.entity.name,
                     method: that.widget.remove_method,
-                    args: that.entity.get_primary_key(),
-                    options: {all: true, rights: true}
+                    args: that.entity.get_primary_key()
                 });
 
                 command.set_option(that.widget.other_entity.name, values);
-- 
1.7.7.6

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to