File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Studies/api-src/org/labkey/api/studies/query Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- package org .labkey .studies .query ;
1+ package org .labkey .api . studies .query ;
22
33import org .apache .commons .lang3 .StringUtils ;
44import org .labkey .api .data .ColumnInfo ;
99import java .text .DecimalFormat ;
1010import java .util .Set ;
1111
12- public class ResultsOOODisplayColumn extends DataColumn
12+ public class ResultsOORDisplayColumn extends DataColumn
1313{
14- public ResultsOOODisplayColumn (ColumnInfo col )
14+ public ResultsOORDisplayColumn (ColumnInfo col )
1515 {
1616 super (col );
1717 }
@@ -48,15 +48,15 @@ public Object getDisplayValue(RenderContext ctx)
4848
4949 private FieldKey getOOR ()
5050 {
51- FieldKey oor = FieldKey . fromString ( "resultOOOIndicator" );
52- if (getBoundColumn () ! = null )
51+ ColumnInfo col = getBoundColumn ( );
52+ if (col = = null )
5353 {
54- return FieldKey .fromParts (getBoundColumn ().getFieldKey ().getParent (), oor );
55- }
56- else
57- {
58- return oor ;
54+ return null ;
5955 }
56+
57+ FieldKey oor = FieldKey .fromString (col .getFieldKey ().getName () + "OORIndicator" );
58+
59+ return getBoundColumn ().getFieldKey ().getParent () == null ? oor : FieldKey .fromParts (getBoundColumn ().getFieldKey ().getParent (), oor );
6060 }
6161
6262 @ Override
You can’t perform that action at this time.
0 commit comments