From 04a04ac0e44921fde549c4f6e8c0b182aeab0947 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 11 Feb 2020 14:15:38 -0500 Subject: [PATCH] fix grid initialization bug If an IDL link field has an explicit eg-grid-column definition, ensure that the datatype is set correctly. Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/grid/grid.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 741199d032..b1fbf90752 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.ts @@ -231,9 +231,11 @@ export class GridColumnSet { if (idlInfo) { col.idlFieldDef = idlInfo.idlField; col.idlClass = idlInfo.idlClass.name; + if (!col.datatype) { + col.datatype = col.idlFieldDef.datatype; + } if (!col.label) { col.label = col.idlFieldDef.label || col.idlFieldDef.name; - col.datatype = col.idlFieldDef.datatype; } } } -- 2.11.0