summaryrefslogtreecommitdiffstats
path: root/install/ui/service.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-22 09:21:56 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-02-29 13:01:16 +0100
commit885ffe5a3e2ef4d370c4fffa458ef44fd61c5250 (patch)
tree8e829320177d31ada422dc33c407fe87c865658b /install/ui/service.js
parent34f742bec2dec8fd4ade51946cd38b9dea123295 (diff)
downloadfreeipa-885ffe5a3e2ef4d370c4fffa458ef44fd61c5250.tar.gz
freeipa-885ffe5a3e2ef4d370c4fffa458ef44fd61c5250.tar.xz
freeipa-885ffe5a3e2ef4d370c4fffa458ef44fd61c5250.zip
Multiple fields for one attribute
Current implementation has a limitation to have one field per one attribute. This is fine for most cases. For cases where an attribute can have two editor widgets which can be swapped a need for two different types of field may occur. This patch introduces 'param' option which supposes to contain attribute name. If 'param' is not specified it will contain field's name therefore backward compatibility is maintained. This extension allows to have two fields with different name and same param -> two fields get/supply value from/to the same attribute. Needed for: https://fedorahosted.org/freeipa/ticket/2372
Diffstat (limited to 'install/ui/service.js')
-rw-r--r--install/ui/service.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/service.js b/install/ui/service.js
index f60d45550..c86a6d05d 100644
--- a/install/ui/service.js
+++ b/install/ui/service.js
@@ -347,7 +347,7 @@ IPA.service_provisioning_status_field = function (spec) {
that.load = function(record) {
that.values = {
- value: record[that.name],
+ value: record[that.param],
pkey: record['krbprincipalname'][0]
};