Fix an error where 'false' string is displayed when we add a new parameter in the Parameters tab,

also clear the old value when the user changes the parameter name.

Corrected the implementation of BooleanCellFormatter.

Fixes #4753
This commit is contained in:
Akshay Joshi
2019-10-07 16:00:28 +05:30
parent 7489c372e5
commit 55c6fa0d93
3 changed files with 5 additions and 2 deletions

View File

@@ -87,7 +87,8 @@ function(gettext, _, $, Backbone, Backform, Backgrid, Alertify, pgAdmin, pgNode)
setTimeout(function() {
self.columns.each(function(col) {
if (col.get('name') == 'value') {
// Reset old value
self.model.set({'value': undefined}, {silent:true});
var idx = self.columns.indexOf(col),
cf = col.get('cellFunction'),
cell = new (cf.apply(col, [self.model]))({