From 4385816dbb61a281ccf90b0bd21e60862711a27a Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 8 Mar 2012 10:37:28 +0100 Subject: [PATCH] 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 --- install/ui/widget.js | 1 + 1 file changed, 1 insertion(+) 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); }