diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index f7af7660..7c17f4c3 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -509,7 +509,6 @@ todo:2 many biz objects are not using new PUT methodology CURRENTLY DOING: - todo MISC: @@ -536,9 +535,11 @@ todo MISC: maybe set the repeat interval off by a small amount so they can't sync up? or maybe they just run sequentially from the initial trigger anyway? But even so, staggering the repeat interval will mean less jobs running in the same overall job cycle - + ITEMS section of workorder form needs to stand out somehow more, maybe a splash of color in the icon or something + + profit$ ============================ diff --git a/ayanova/src/views/ay-data-list-column-view.vue b/ayanova/src/views/ay-data-list-column-view.vue index a7c49777..83d1c907 100644 --- a/ayanova/src/views/ay-data-list-column-view.vue +++ b/ayanova/src/views/ay-data-list-column-view.vue @@ -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