This commit is contained in:
@@ -442,25 +442,26 @@ function initWorkingView(vm) {
|
||||
//Pass 1, iterate the columns first
|
||||
for (let i = 0; i < columns.length; i++) {
|
||||
let fld = vm.fieldDefinitions.find(z => z.fieldKey == columns[i]);
|
||||
//bugbug: if there is a incorrect field in the view it surfaces here when user attempts to set the column view because it doesn't turn up so fld here will be null
|
||||
//in this case ideally the fix would be to ignore the probably bogus column and move on to work without it
|
||||
let o = {
|
||||
key: fld.fieldKey,
|
||||
title: null,
|
||||
include: true
|
||||
};
|
||||
//there can be a column definition that doesn't exist due to updates or misconfiguration or other issues so ignore it if that's the case
|
||||
if (fld) {
|
||||
let o = {
|
||||
key: fld.fieldKey,
|
||||
title: null,
|
||||
include: true
|
||||
};
|
||||
|
||||
if (fld.tKeySection != null) {
|
||||
o.title = vm.$ay.t(fld.tKeySection) + "." + vm.$ay.t(fld.tKey);
|
||||
} else {
|
||||
o.title = vm.$ay.t(fld.tKey);
|
||||
if (fld.tKeySection != null) {
|
||||
o.title = vm.$ay.t(fld.tKeySection) + "." + vm.$ay.t(fld.tKey);
|
||||
} else {
|
||||
o.title = vm.$ay.t(fld.tKey);
|
||||
}
|
||||
|
||||
if (fld.isRowId) {
|
||||
o.rid = true;
|
||||
}
|
||||
|
||||
ret.push(o);
|
||||
}
|
||||
|
||||
if (fld.isRowId) {
|
||||
o.rid = true;
|
||||
}
|
||||
|
||||
ret.push(o);
|
||||
}
|
||||
|
||||
//Pass 2, remaining fields not already dealt with
|
||||
|
||||
Reference in New Issue
Block a user