From e418cb838730ce186c620cdf39c064eca02a7d61 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 7 Aug 2017 14:02:59 +0530 Subject: [PATCH] Changed the mapping of cell from 'numeric' to 'integer' for integer control as numeric cell has been removed from the code. Fixes #2631 --- .../browser/server_groups/servers/roles/static/js/role.js | 2 +- web/pgadmin/static/js/backform.pgadmin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/roles/static/js/role.js b/web/pgadmin/browser/server_groups/servers/roles/static/js/role.js index 44703f18f..fd3f85fe5 100644 --- a/web/pgadmin/browser/server_groups/servers/roles/static/js/role.js +++ b/web/pgadmin/browser/server_groups/servers/roles/static/js/role.js @@ -425,7 +425,7 @@ define('pgadmin.node.role', [ deps: ['rolcanlogin'], options: {format: 'YYYY-MM-DD HH:mm:ss Z'} },{ id: 'rolconnlimit', type: 'int', group: gettext('Definition'), - label: gettext('Connection limit'), cell: 'number', min : -1, + label: gettext('Connection limit'), cell: 'integer', min : -1, mode: ['properties', 'edit', 'create'], disabled: 'readonly' },{ id: 'rolcanlogin', label: gettext('Can login?'), type: 'switch', diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js index e3b5b6c8d..5eb60aac2 100644 --- a/web/pgadmin/static/js/backform.pgadmin.js +++ b/web/pgadmin/static/js/backform.pgadmin.js @@ -56,7 +56,7 @@ }); var controlMapper = Backform.controlMapper = { - 'int': ['uneditable-input', 'numeric', 'numeric'], + 'int': ['uneditable-input', 'numeric', 'integer'], 'text': ['uneditable-input', 'input', 'string'], 'numeric': ['uneditable-input', 'numeric', 'numeric'], 'date': 'datepicker',