diff --git a/docs/en_US/release_notes_5_1.rst b/docs/en_US/release_notes_5_1.rst index 0a02c1d5f..fe3203336 100644 --- a/docs/en_US/release_notes_5_1.rst +++ b/docs/en_US/release_notes_5_1.rst @@ -22,6 +22,7 @@ Bug fixes ********* | `Issue #4438 `_ - Fixed an issue where adding/updating records fails if the table name contains percent sign. +| `Issue #4784 `_ - Ensure that autovacuum and analyze scale factors should be editable with more than two decimals. | `Issue #4959 `_ - Fixed an issue where the properties tab for collection nodes is unresponsive after switching the tabs. | `Issue #5073 `_ - Fixed an issue where the Save button is enabled for functions/procedures by default when open the properties dialog. | `Issue #5119 `_ - Fixed an issue where hanging symlinks in a directory cause select file dialog to break. diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/static/js/schema.js b/web/pgadmin/browser/server_groups/servers/databases/schemas/static/js/schema.js index 03fd7d6e1..740c9fff1 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/static/js/schema.js +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/static/js/schema.js @@ -120,7 +120,9 @@ define('pgadmin.node.schema', [ case 'integer': return Backgrid.IntegerCell; case 'number': - return Backgrid.NumberCell; + return Backgrid.NumberCell.extend({ + decimals: this.get('decimals') || Backgrid.NumberFormatter.prototype.defaults.decimals, + }); case 'string': return Backgrid.StringCell; default: @@ -210,6 +212,7 @@ define('pgadmin.node.schema', [ { name: 'value', label: gettext('Value'), cellHeaderClasses:'width_percent_30', + decimals: 5, cellFunction: Backform.cellFunction, editable: function(m) { return m.handler.get('autovacuum_custom'); }, headerCell: Backgrid.Extension.CustomHeaderCell, @@ -284,6 +287,7 @@ define('pgadmin.node.schema', [ name: 'value', label: gettext('Value'), cellHeaderClasses:'width_percent_30', headerCell: Backgrid.Extension.CustomHeaderCell, + decimals: 5, cellFunction: Backform.cellFunction, editable: function(m) { return m.handler.get('toast_autovacuum'); },