Changed the mapping of cell from 'numeric' to 'integer' for integer control as numeric cell has been removed from the code. Fixes #2631

REL-1_X
Akshay Joshi 2017-08-07 14:02:59 +05:30
parent 801a05891e
commit e418cb8387
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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',