summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-03-08 10:37:28 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-03-14 09:08:01 +0100
commit4385816dbb61a281ccf90b0bd21e60862711a27a (patch)
tree29bb8b9d9bd86b0b3e7188a069228e53d09db242 /install
parent6066432f0d4138473f0cd9fe4965558fbc054589 (diff)
downloadfreeipa-4385816dbb61a281ccf90b0bd21e60862711a27a.tar.gz
freeipa-4385816dbb61a281ccf90b0bd21e60862711a27a.tar.xz
freeipa-4385816dbb61a281ccf90b0bd21e60862711a27a.zip
Fixed checkbox value in table without pkey
When a table is displaying a record set without entity's pkey attribute. A checkbox value isn't properly prepared. This patch adds the preparation (converts value to string). https://fedorahosted.org/freeipa/ticket/2404
Diffstat (limited to 'install')
-rw-r--r--install/ui/widget.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index f906d165c..d46bbd8aa 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1615,6 +1615,7 @@ IPA.table_widget = function (spec) {
if (!select_set) {
value = record[that.value_attr_name];
+ value = value ? value.toString() : '';
$('input[name="'+that.name+'"]', tr).val(value);
}