Hi,

PFA minor patch for variable js.

Issue fixed: Initialize boolean cell with proper data (either true or false
not undefined).

-- 
*Harshal Dhumal*
*Software Engineer *



EenterpriseDB <http://www.enterprisedb.com>
diff --git a/web/pgadmin/browser/server_groups/servers/static/js/variable.js b/web/pgadmin/browser/server_groups/servers/static/js/variable.js
index fd3a0bb..8308c27 100644
--- a/web/pgadmin/browser/server_groups/servers/static/js/variable.js
+++ b/web/pgadmin/browser/server_groups/servers/static/js/variable.js
@@ -120,7 +120,11 @@
 
       switch(variable && variable.vartype) {
         case "bool":
-          // There are no specific properties for BooleanCell.
+          /*
+           * bool cell and variable can not be stateless (i.e undefined).
+           * It should be either true or false.
+           */
+          opts.model.set("value", Boolean(opts.model.get("value")));
           break;
 
         case "enum":
-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to