Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions api/src/org/labkey/api/audit/query/DefaultAuditTypeTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,19 @@ protected ColumnInfo resolveColumn(String name)
if (col != null)
return col;

// Handle the old style 'intKey1' and 'key1' columns
String newName = _legacyNameMap.get(FieldKey.fromParts(name));
String newName = null;

if (_legacyNameMap.isEmpty())
{
// Backward compatibility with widely used legacy name
if ("Date".equalsIgnoreCase(name))
newName = "Created";
}
else
{
// Handle the old style 'intKey1' and 'key1' columns
newName = _legacyNameMap.get(FieldKey.fromParts(name));
}
col = super.resolveColumn(newName);
if (col != null)
{
Expand Down