We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff8fcf commit ea717eeCopy full SHA for ea717ee
cdb/Module.hx
@@ -111,12 +111,27 @@ class Module {
111
}
112
if( psheet == null )
113
return s.lines;
114
+
115
+ var pcol = null;
116
+ for( c in psheet.columns ) {
117
+ if( c.name == col ) {
118
+ pcol = c;
119
+ break;
120
+ }
121
122
123
var out = [];
124
for( o in getSheetLines(sheets,psheet) ) {
- var objs : Array<Dynamic> = Reflect.field(o, col);
- if( objs != null )
- for( o in objs )
- out.push(o);
125
+ if (pcol != null && pcol.type == TProperties) {
126
+ var obj = Reflect.field(o, col);
127
+ if( obj != null )
128
+ out.push(obj);
129
+ } else {
130
+ var objs : Array<Dynamic> = Reflect.field(o, col);
131
+ if( objs != null )
132
+ for( o in objs )
133
+ out.push(o);
134
135
136
return out;
137
0 commit comments