From 11e64be86388acf49dafaa73b634256dc374e362 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 22 Apr 2021 17:17:00 -0400 Subject: [PATCH] LP1904036 billing history tabs; sql cleanup Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 8 +++++++- .../app/staff/circ/patron/billing-history.component.html | 3 ++- .../src/app/staff/circ/patron/billing-history.component.ts | 13 +++++++++++++ Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql | 4 ---- 4 files changed, 22 insertions(+), 6 deletions(-) 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 90fa88b04f..bc72130a82 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -125,7 +125,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; @@ -176,6 +176,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 @@ -