mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where clicking on an empty textbox like fill factor or comments, considers it as change and enabled the save button. Fixes #4506.
This commit is contained in:
committed by
Akshay Joshi
parent
43d37e3b4c
commit
11bf5fc679
@@ -367,7 +367,8 @@ define([
|
||||
return;
|
||||
}
|
||||
attrs[k] = v;
|
||||
if (_.isEqual(self.origSessAttrs[k], v)) {
|
||||
/* If the orig value was null and new one is empty string, then its a "no change" */
|
||||
if (_.isEqual(self.origSessAttrs[k], v) || (self.origSessAttrs[k] === null && v === '')) {
|
||||
delete self.sessAttrs[k];
|
||||
} else {
|
||||
self.sessAttrs[k] = v;
|
||||
@@ -738,9 +739,7 @@ define([
|
||||
field = this.fieldData[keys[i]];
|
||||
msg = null;
|
||||
|
||||
if (!(_.isUndefined(value) || _.isNull(value) ||
|
||||
String(value).replace(/^\s+|\s+$/g, '') == '')) {
|
||||
|
||||
if (!(_.isUndefined(value) || _.isNull(value) || String(value) === '')) {
|
||||
if (!field) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user