LP1904036 Grid flat data service/support
authorBill Erickson <berickxx@gmail.com>
Mon, 19 Apr 2021 16:43:51 +0000 (12:43 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 22 Apr 2021 21:17:50 +0000 (17:17 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid.ts

index 0824853..d5cceb7 100644 (file)
@@ -116,6 +116,7 @@ export class GridColumnSet {
         this.applyColumnFilterability(col);
     }
 
+
     // Returns true if the new column was inserted, false otherwise.
     // Declared columns take precedence over auto-generated columns
     // when collisions occur.
@@ -779,7 +780,7 @@ export class GridContext {
 
         if (col.name in row) {
             val = this.getObjectFieldValue(row, col.name);
-        } else {
+        } else if (col.path) {
             val = this.nestedItemFieldValue(row, col);
         }