Export job fails when deselecting all the columns.

Select2 parameter 'first_empty' should be set to false for the controls of type array.
If it is true then on deselecting/clearing all the values, an empty entry is still there. 

Fixes #4751
This commit is contained in:
Akshay Joshi
2019-10-04 13:00:39 +05:30
parent 245a6e6f57
commit bf2c001c87
3 changed files with 5 additions and 3 deletions

View File

@@ -400,8 +400,8 @@ define('pgadmin.node.table', [
id: 'coll_inherits', label: gettext('Inherited from table(s)'),
url: 'get_inherits', type: 'array', group: gettext('Columns'),
disabled: 'checkInheritance', deps: ['typname', 'is_partitioned'],
mode: ['create', 'edit'],
select2: { multiple: true, allowClear: true,
mode: ['create', 'edit'], first_empty: false,
select2: { multiple: true, allowClear: true, first_empty: false,
placeholder: gettext('Select to inherit from...')},
transform: function(data, cell) {
var control = cell || this,