Allow the selection order to be preserved in the Select2 control to fix column ordering in data Import/Export. Fixes #3029

This commit is contained in:
Akshay Joshi
2018-10-31 10:09:40 +00:00
committed by Dave Page
parent 6e03775f05
commit 3359a0de7a
4 changed files with 43 additions and 0 deletions

View File

@@ -174,6 +174,7 @@ Backform, commonUtils, supportedNodes
allowClear: false,
placeholder: gettext('Columns for importing...'),
first_empty: false,
preserveSelectionOrder: true,
},
visible: 'importing',
helpMessage: gettext('An optional list of columns to be copied. If no column list is specified, all columns of the table will be copied.'),
@@ -192,6 +193,7 @@ Backform, commonUtils, supportedNodes
multiple: true,
allowClear: true,
placeholder: gettext('Colums for exporting...'),
preserveSelectionOrder: true,
},
visible: 'exporting',
transform: function(rows) {