From: Bill Erickson Date: Thu, 22 Apr 2021 21:17:00 +0000 (-0400) Subject: LP1904036 billing history tabs; sql cleanup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fberick%2Flp1904036-patron-ui-angular-v2;p=working%2FEvergreen.git LP1904036 billing history tabs; sql cleanup Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.ts b/Open-ILS/src/eg2/src/app/share/grid/grid.ts index d5cceb7a19..f5d7cf4d78 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -124,7 +124,7 @@ export class GridColumnSet { insertColumn(col: GridColumn): boolean { if (col.isAuto) { - if (this.getColByName(col.name)) { + if (this.getColByName(col.name) || this.getColByPath(col.path)) { // New auto-generated column conflicts with existing // column. Skip it. return false; @@ -175,6 +175,12 @@ export class GridColumnSet { return this.columns.filter(c => c.name === name)[0]; } + getColByPath(path: string): GridColumn { + if (path) { + return this.columns.filter(c => c.path === path)[0]; + } + } + idlInfoFromDotpath(dotpath: string): any { if (!dotpath || !this.idlClass) { return null; } diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html index 06d59b094b..37ad704fd4 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html @@ -17,7 +17,8 @@ -