Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions api/webapp/clientapi/dom/DataRegion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2889,6 +2889,15 @@ if (!LABKEY.DataRegions) {
session: true
});

// GitHub Issue 1219: the 'fields' column-metadata for the view is never used on the server-side save action
// so it can be removed from the payload. Also, only fieldKey/title are read per column so we can trim down that as well.
delete viewConfig.fields;
if (LABKEY.Utils.isArray(viewConfig.columns)) {
viewConfig.columns = $.map(viewConfig.columns, function(col) {
return col.title ? { fieldKey: col.fieldKey, title: col.title } : { fieldKey: col.fieldKey };
});
}

LABKEY.Query.saveQueryViews({
containerPath: this.containerPath,
schemaName: this.schemaName,
Expand Down