From 8e919744217efae6d6f71a1a07a681183e79c813 Mon Sep 17 00:00:00 2001 From: pengbo Date: Mon, 28 Aug 2017 09:09:21 +0900 Subject: [PATCH] Fix bugs in js/pgconfig.js used for setting pgpool.conf. [pgpool-general: 5660] --- js/pgconfig.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/pgconfig.js b/js/pgconfig.js index 035282f..ab13187 100644 --- a/js/pgconfig.js +++ b/js/pgconfig.js @@ -15,6 +15,9 @@ function toggleTbody(item) if (tagname == 'INPUT' && $(item).attr('type') == 'radio') { val = $(item).filter(':checked').val(); + if (val === undefined) { + return; + } } else if (tagname == 'SELECT') { val = $(item).children('option').filter(':selected').val(); -- 2.39.5