From: Galen Charlton Date: Tue, 11 Feb 2020 19:15:38 +0000 (-0500) Subject: fix grid initialization bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=04a04ac0e44921fde549c4f6e8c0b182aeab0947;p=working%2FEvergreen.git 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 --- 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; } } }