Hello,

I've found a small bug in locations in WebUI. It is not allowed to set weight of a server with no location (i.e. adding new server). Attached patch allows that.

https://fedorahosted.org/freeipa/ticket/5905

--
Pavel^3 Vomacka
From 1fc29c625bfcd5fc4a3eb5b6293986d7f9bacb2f Mon Sep 17 00:00:00 2001
From: Pavel Vomacka <pvoma...@redhat.com>
Date: Fri, 10 Jun 2016 09:39:36 +0200
Subject: [PATCH] Allow to set weight of a server without location

There was a bug when a new server was added it was not possible to set weight until
a location was set. This change corrects it and allows user to set a weight of server
without location.

Part of: https://fedorahosted.org/freeipa/ticket/5905
---
 install/ui/src/freeipa/topology.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js
index 139f9562506f338b32dc3afa56493ecb2c4a1cfc..53a7c70dd430cd383e8cefc829bd31c90971a27f 100644
--- a/install/ui/src/freeipa/topology.js
+++ b/install/ui/src/freeipa/topology.js
@@ -240,7 +240,8 @@ return {
                         },
                         {
                             name: 'ipalocationweight',
-                            placeholder: '100'
+                            placeholder: '100',
+                            flags: ['w_if_no_aci']
                         },
                         {
                             $type: 'association_table',
-- 
2.5.5

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to